I am getting 2 errors on a macro I wrote in Excel 2002 when it is used with Excel 2000. Works fine with 2002.
1.
Run-Time Error:
Application-defined or object-defined error
The code is:
Selection.Sort Key1:=Range("A2"
, Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
2.
Compile Error:
Named Argument not found:
Range("A1
2000"
.Sort Key1:=Range("B2"
, Order1:=xlAscending, Header:= _
xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Can anyone give me any direction as to what I'm missing?
Thanks,
Joyce
1.
Run-Time Error:
Application-defined or object-defined error
The code is:
Selection.Sort Key1:=Range("A2"
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
2.
Compile Error:
Named Argument not found:
Range("A1
xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Can anyone give me any direction as to what I'm missing?
Thanks,
Joyce