Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 44
Default Open a excel workbook always on the same sheet

I want to have a excel workbook open up everytime on a particular sheet. This
is irrespective of which sheet i had last accessed and saved the file.
However, when i reopen the file anytime, it must open up on sheet 1 (for e.g.)

Can anyone help plz

regards

Nikhil
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default Open a excel workbook always on the same sheet

Use the Workbook_Open() event to deal with this. You can use a command like
Worksheets(1).Activate
or
Worksheets("name on sheet tab").Activate

The code has to go into the 'ThisWorkbook' object's code module. Open the
workbook and press [Alt]+[F11] to open the VB Editor. Press [Ctrl]+[R] to
make sure the "Project - VBAProject" pane is visible and right-click on the
'ThisWorkbook' object in the list (it will be at the bottom of the list of
worksheets in the book) and choose [View Code]. Copy and paste this code
into the module (change the (1) to use the worksheet name if you prefer) and
save the workbook.

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

Testing it is easy enough, choose another sheet and save & close the
workbook and then reopen it. The sheet you identified should be presented to
you.

"Nikhil" wrote:

I want to have a excel workbook open up everytime on a particular sheet. This
is irrespective of which sheet i had last accessed and saved the file.
However, when i reopen the file anytime, it must open up on sheet 1 (for e.g.)

Can anyone help plz

regards

Nikhil

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
open to a certain sheet tab in a different workbook akay71 New Users to Excel 1 June 5th 08 05:01 PM
How can I set a workbook to open always with a certain sheet I wan Shariq Setting up and Configuration of Excel 1 December 20th 06 09:01 AM
Search open sheets in workbook and insert into open sheet punx77 Excel Discussion (Misc queries) 0 March 6th 06 05:07 PM
Open workbook on same sheet? mevetts Excel Discussion (Misc queries) 2 December 21st 05 11:15 AM
Open workbook at a particular sheet George Gee New Users to Excel 2 October 15th 05 12:54 PM


All times are GMT +1. The time now is 06:43 AM.

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

About Us

"It's about Microsoft Excel"