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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select First(far left) sheet everytime 1

Status
Not open for further replies.

robcarr

Programmer
May 15, 2002
633
GB
Dear All,

Does anybody know how to automatically select the 1st(far left) sheet everytime i open a file using VBA, the first sheet is not named sheet1, but has a different name each month, but I always need to start my coding from this sheet, I have always got no more than 5 sheets in the file, how can this been done.

Thanks in advance,
 
This should be all you need. It should be placed in "ThisWorkbook".


Private Sub Workbook_Open()
Worksheets(1).Select
End Sub


Hope this helps. :)

Regards, ...Dale Watson dwatson@bsi.gov.mb.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top