Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ray Ray is offline
external usenet poster
 
Posts: 267
Default Macro issue in XL03 "Compatability Mode"

Hi -

Using XL07 in Compatability Mode, I've created what I *thought* was a
relatively simple procedure to sort a range based on a user-selected
cell. For example, if user clicks on cell D3, the range A4:Z50 is
sorted based on values in column D.

The procedure ran fine on my computer, but when a native XL03 user
clicks on a 'header' (in row 3), the procedure throws an error:
Compile Error: Variable Not Defined
with SortOn:=xlSortOnValues highlighted as the error.

The whole line is:
ActiveWorkbook.Worksheets("Exec Summary").Sort.SortFields.Add
Key:=Range( _
"K5:K41"), SortOn:=xlSortOnValues, Order:=xlAscending,
DataOption:= _
xlSortNormal

Is 'xlSortOnValues' referencing an Object Library that's not available
by Default? Can I programmatically check for it (on the user's
machine) and activate if not already available?

Any help is greatly appreciated!

Thanks, ray
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro issue in XL03 "Compatability Mode" Andrew[_16_] Excel Programming 0 August 31st 09 01:14 PM
How to have a macro simply issue the "find" command or "control f: Charles Adams Excel Programming 3 February 6th 09 06:34 PM
"compatability mode" this is slowing things, how to fix jammon Excel Discussion (Misc queries) 1 October 17th 08 04:35 PM
Mkae Mode function return "" instead of #N/A when there is no Mode Tonso Excel Discussion (Misc queries) 2 March 10th 07 05:10 PM
Make "Edit" mode default, rather than "Enter"? Greg Boettcher Excel Discussion (Misc queries) 1 July 27th 06 01:46 AM


All times are GMT +1. The time now is 01:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"