+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    09-10-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Loading a specific sheet in a workbook on opening Excel

    I have an excel workbook with lots of different sheets, is it possible for Excel to load up sheet 1 everytime when i start excel and not from the last sheet that i saved work on?

  2. #2
    Forum Guru
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2003, 2007.
    Posts
    1,413

    Re: Loading a specific sheet in a workbook on opening Excel

    LEEP2008,

    I have two variations on your request to activate a specific worksheet when you open your workbook (no matter what worksheet was active the last time you saved the workbook).

    1. Activate worksheet name "Sheet1":

    Code:
    Private Sub Workbook_Open()
      Sheets("Sheet1").Activate
    End Sub

    2. Activate the first worksheet in your workbook, not the name of the worksheet (the way your tabs are in order from left to right):

    Code:
    Private Sub Workbook_Open()
     Sheets(1).Activate
    End Sub


    Please TEST this FIRST in a COPY of your workbook (always make a backup copy before trying new code, you never know what you might lose).

    1. Copy the above code of your choice, by highlighting the macro code and pressing the keys CTRL + C
    2. Open your workbook
    3. Press the keys ALT + F11 to open the Visual Basic Editor
    4. And, paste the copied code into VBAProject, Microsoft Excel Objects, ThisWorkbook (on the right pane) by pressing the keys CTRL + V
    5. Press the keys ALT+Q to exit the Editor, and return to Excel


    Then save and close the workbook with the active sheet not the sheet that you want to be active upon opening your workbook.

    Then open the workbook again.
    Last edited by stanleydgromjr; 09-23-2009 at 04:31 PM.
    Have a great day,
    Stan
    stanleydgromjr
    Windows Vista Business, Excel 2003 and 2007

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Registered User
    Join Date
    09-10-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Loading a specific sheet in a workbook on opening Excel

    Thanks that works a treat.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0