![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Northern Ireland
Posts: 113
|
How can I set a specific worksheet to open when I open a workbook?
It always opens with whatever the last sheet was that I looked at. |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: =ActiveCell.Address
Posts: 478
|
In the Workbook area, you need something like...
Private Sub Workbook_Open() Sheets("yoursheetname").Select End Sub Rgds AJ |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Northern Ireland
Posts: 113
|
Gosh I feel such a dork, I could not see the workbook area.
Thanks anyway |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Stockton, California
Posts: 281
|
Put this code (modify for your sheet name) in the "ThisWorkbook" section in excel VB:
Private Sub Workbook_Open() Sheets("Sheet1").Activate End Sub |
|
|
|
|
|
#5 |
|
New Member
Join Date: Apr 2002
Posts: 1
|
Is there a command line for opening specific worksheets in a workbook when opening excel. You can specify in icon properties a workbook to open. Can you also tell excel which worksheet of the workbook to open as well?
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|