IF I am on another sheet and run the code below, it debugs on the select line. I don't need to select the cell, but I do want to move to A1 so when the sheet is selected it shows A1 active.
I could do it with a sheet_activate event, but I would like to avoid events if possible.
Any other way to do it?
TX
Code: Select all
Sub ClearStaffCosts()
Worksheets("StaffCosts").Rows("2:1000").Delete
Worksheets("StaffCosts").Range("A1").Select
End Sub