Hi Shawn,
As suggested By Dave in his adjacent post, delete the contentious parameter:
Selection.Sort Key1:=Range("G7"), _
Order1:=xlDescending, _
Header:=xlGuess, _
OrderCustom:=1, _
MatchCase:=False, _
Orientation:=xlTopToBottom
---
Regards,
Norman
> How should I write that code?
>
[quoted text clipped - 27 lines]
>> > It works fine on my machine. However, when I e-mail this file to other
>> > users, they get an error and the Selection code is highlighted???
Shawn - 15 Sep 2005 16:02 GMT
Is that causing, "compile error, variable not defined?"

Signature
Thanks
Shawn
> Hi Shawn,
>
[quoted text clipped - 42 lines]
> >> > It works fine on my machine. However, when I e-mail this file to other
> >> > users, they get an error and the Selection code is highlighted???
Norman Jones - 15 Sep 2005 16:54 GMT
Hi Shawn,
Yes - in versions prior to xl2002.
---
Regards,
Norman
> Is that causing, "compile error, variable not defined?"
>
[quoted text clipped - 47 lines]
>> >> > other
>> >> > users, they get an error and the Selection code is highlighted???
sbweid - 23 Sep 2006 18:56 GMT
I have a variation on this problem. I'm using Excel 2002 sp3. The VBA code
is quite simple.
Application.Goto Reference:=SubAcctDB ' where this variable is set to a
defined named range
Selection.Sort Key1:=Range("BA14"), Order1:=xlAscending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
The result is the following:
Compile Error: Mehtod or data member not found.
I'm totally lost since I have done these kinds of sorts 50 times. Can you
help me with this?
Thanks!
Steve

Signature
sbw
> Hi Shawn,
>
[quoted text clipped - 55 lines]
> >> >> > other
> >> >> > users, they get an error and the Selection code is highlighted???