ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Set active worksheet on startup (https://www.excelbanter.com/excel-programming/330440-set-active-worksheet-startup.html)

Duplicate entries

Set active worksheet on startup
 
I have a excel file with several worksheets. I would like to ensure that a
specific worksheet is the active worksheet every time a user opens the file.

Thanks in advance for any help.

Eric[_27_]

Set active worksheet on startup
 
Use the ThisWokbook module; open it and use the comboboxes three to navigate
to the Open event (go from "(General) -- (Declarations)" to "Workbook --
Open". Excel will create a stub for you like the one below. All you need to
add is one line, also as shown.

------------------------------------------
Private Sub Workbook_Open()
Worksheets("YourSpecialSheetName").Activate
End Sub
------------------------------------------

"Duplicate entries" wrote in
message ...
I have a excel file with several worksheets. I would like to ensure that a
specific worksheet is the active worksheet every time a user opens the
file.

Thanks in advance for any help.





All times are GMT +1. The time now is 08:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com