Problem sorting in Excel 2000 vs. 2003

G

Guest

I have a macro that sorts the following code fine in Excel 2003 but stops the
macro in Excel 2000. Here is the code that is not working in Excel 2000. Any
suggestions are appreciated:

Range("A5:S5000").Select
Selection.Sort Key1:=Range("A5"), Order1:=xlAscending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
 
D

Dave Peterson

DataOption1:=xlSortNormal

Was added in xl2002.

Delete it from your code and you should be ok (don't forget the preceding comma
and underscore, too).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top