Hi. This code deletes rows from four sheets before moving on to something else. BUT when I add the code to a Command Button (2003 and 2007) the "Rows("2:600").Select" lines give a Runtime error 1004: Select Method of Range Class Failed error message. Any help would be GREATLY appreciated. :confused:
Code
Worksheets("Sort by station").Select
Rows("2:600").Select
Selection.Delete Shift:=xlUp
Range("A2").Select
Worksheets("Sort by use").Select
Rows("2:600").Select
Selection.Delete Shift:=xlUp
Range("A2").Select
Worksheets("Sort condition & mileage").Select
Rows("2:600").Select
Selection.Delete Shift:=xlUp
Range("A2").Select
Worksheets("Sort by make model").Select
Rows("2:600").Select
Selection.Delete Shift:=xlUp
Range("A2").Select
Worksheets("Add_edit_remove").Select
Range("A5").Select
Display More