Metalshock Posted November 12, 2008 Posted November 12, 2008 I've recorded a macro for sorting a column in Excel in Office xp. When I run the macro on a machine with Office 2000 it throws up an error message for the 1st line - Range("ai3:ak15").SelectI dont much about macro programming and so am a bit stuck.The macro code isRange("ai3:ak15").Select Selection.Sort Key1:=Range("ai3"), Order1:=xlAscending, Header:=xlNo _ , OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormalAny help appreciated. Thanks.
Metalshock Posted November 14, 2008 Author Posted November 14, 2008 I found what the problem is. If you remove the last line "DataOption1:=xlSortNormal" then it works in 2000.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now