I'd appreciate guidance with the following.
I'm trying to open a workbook at a specific tab, using:
in ThisWorkbook, however every time I open the workbook it opens at the last used tab and displays an error pop-up - Run-time error '9': Subscript out of range
Running Debug highlights the
line. I've tried replacing "Sheet26" with the actual tab name but I get the same result.
What have I done wrong and what should I have done?
I'm trying to open a workbook at a specific tab, using:
Code:
Private Sub Workbook_Open()
Sheets(“Sheet26”).Select
Range(“B2”).Select
End Sub
in ThisWorkbook, however every time I open the workbook it opens at the last used tab and displays an error pop-up - Run-time error '9': Subscript out of range
Running Debug highlights the
Code:
Sheets("Sheet26").Select
What have I done wrong and what should I have done?