Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro created in Excel 2002, getting runtime error in 2000

Status
Not open for further replies.

amandarose80

Technical User
Jan 13, 2003
52
US
I'm not sure if this is a version issue or something to do with the settings.
I created a spreadsheet using Excel 2002 that has macros to run certain filters. These work fine in 2000. But when the other user goes to use the macro to remove all filters and sort the data by a specified column, she gets a runtime error. Anyone got any ideas of where to start to resolve this? Thanks!!
 
Could you show us your code please? Or at least explain what type of error is happening?

Peace! [peace]

Mike

Never say Never!!!
Nothing is impossible!!!
 
We are at different offices but we are using the exact same file and are pulling it from the same place. I am not able to duplicate the runtime error... below is the code:

Sub RemoveFilters()
Sheets("Log Book").Select
Selection.AutoFilter
Cells.Select
Selection.Sort Key1:=Range("E2"), Order1:=xlAscending, Header:=xlYes, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("A2").Select
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top