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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now