D
Don
G'day All,
Looking for VBA line to select the first sheet (furthest
sheet to the left) regardless of name of sheet.
I've been able to get there with the following, but was
wondering if there was a one-liner to do the job:
Sub goto_firstsheet()
Dim i As Integer
On Error GoTo XXX
For i = 1 To 100
ActiveSheet.Previous.Select
Next i
XXX:
End Sub
TIA,
Don
Looking for VBA line to select the first sheet (furthest
sheet to the left) regardless of name of sheet.
I've been able to get there with the following, but was
wondering if there was a one-liner to do the job:
Sub goto_firstsheet()
Dim i As Integer
On Error GoTo XXX
For i = 1 To 100
ActiveSheet.Previous.Select
Next i
XXX:
End Sub
TIA,
Don