Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jbankert
 
Posts: n/a
Default Default a specific worksheet to be in forefront when open excel?

Have multiple worksheets in an excel file and want a specific worksheet to be
in the forefront when opening the excel file. How to do this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
 
Posts: n/a
Default Default a specific worksheet to be in forefront when open excel?

j,

Put this code into the codemodule of the ThisWorkbook Object.

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

Change the 1 to the specific sheet index.

Or, if the users can change the order of the sheets or add new sheet, and you want a specific sheet
selected:

Private Sub Workbook_Open()
Worksheets("Sheet Name").Activate
End Sub

Or, if users might change the name on the tab of that specific sheet:

Private Sub Workbook_Open()
shtCodeName.Activate
End Sub

If you are unclear on the how to implement any of these, post back.

HTH,
Bernie Deitrick
MS Excel MVP


"jbankert" wrote in message
...
Have multiple worksheets in an excel file and want a specific worksheet to be
in the forefront when opening the excel file. How to do this?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
I open one excel worksheet, PERSONAL.XLS also opens, why? harry Excel Discussion (Misc queries) 1 December 22nd 05 06:02 PM
Any way to open an excel file directly to a worksheet? skiddyrow Excel Discussion (Misc queries) 2 July 12th 05 01:39 PM
How do I apply a default size to all comments in Excel worksheet? Alt0471 Excel Discussion (Misc queries) 1 May 25th 05 08:57 PM
Hyperlink to specific worksheet in Excel Glenn Mulno Links and Linking in Excel 2 February 7th 05 06:01 PM


All times are GMT +1. The time now is 05:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"