+ Reply to Thread
Results 1 to 4 of 4

Opening a Title Page

  1. #1
    Ray Lloyd
    Guest

    Opening a Title Page

    I have a Workbook with several sheets. As you know, Excel opens the page you
    were on when last saved. I would like to have Excel open up on my Title
    Sheet regardless of where I was in the Workbook when saving.

    Someone mentioned the 'onopen' function. I'd be grateful for a step-by-step
    guide to inserting the code.
    --
    Crime Pays...
    Unless you''re a motorist!

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    With your desired workbook open, right click on the small spreadsheet icon to the left of the "File" menu item at the top of the window. Click 'View Code'. This opens the VBA editor to the workbook project. Paste this code into the blank pane on the right hand side:


    [vba]
    Private Sub Workbook_Open()
    Sheets("Title_Sheet").Select
    Range("A1").Select
    End Sub[/vba]

    Change "Title_Sheet" to the name of the desired sheet to open to....

    press ALT + Q to close the editor and return to your workbook. Save your file (have a different sheet active). Close and reopen. It should open to your 'Title_Sheet'.

    Good Luck.

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Bernie Deitrick
    Guest

    Re: Opening a Title Page

    Ray,

    Copy the code below, press Alt-F11 to open the VB Editor, press Ctrl-R to
    open the project explorer, double click on your workbook to open it, then
    double-click on the ThisWorkbook object, then in the window to the right
    (usually). Paste the code into that window (paste over any other
    workbook_open subs), and it should behave as you want, after you change
    the sheet name in the code to reflect your actual title sheet name.

    HTH,
    Bernie
    MS Excel MVP

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


    "Ray Lloyd" <[email protected]> wrote in message
    news:[email protected]...
    >I have a Workbook with several sheets. As you know, Excel opens the page you
    > were on when last saved. I would like to have Excel open up on my Title
    > Sheet regardless of where I was in the Workbook when saving.
    >
    > Someone mentioned the 'onopen' function. I'd be grateful for a step-by-step
    > guide to inserting the code.
    > --
    > Crime Pays...
    > Unless you''re a motorist!




  4. #4
    Ray Lloyd
    Guest

    Re: Opening a Title Page

    Many thanks guys! Worked a treat.
    --
    ____________________
    Crime Pays...
    Unless you''re a motorist!


    "swatsp0p" wrote:

    >
    > With your desired workbook open, right click on the small spreadsheet
    > icon to the left of the "File" menu item at the top of the window.
    > Click 'View Code'. This opens the VBA editor to the workbook project.
    > Paste this code into the blank pane on the right hand side:
    >
    >
    >
    > Private Sub Workbook_Open()
    > Sheets("Title_Sheet").Select
    > Range("A1").Select
    > End Sub
    >
    > Change "Title_Sheet" to the name of the desired sheet to open to....
    >
    > press ALT + Q to close the editor and return to your workbook. Save
    > your file (have a different sheet active). Close and reopen. It
    > should open to your 'Title_Sheet'.
    >
    > Good Luck.
    >
    > Bruce
    >
    >
    > --
    > swatsp0p
    >
    >
    > ------------------------------------------------------------------------
    > swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
    > View this thread: http://www.excelforum.com/showthread...hreadid=469106
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.6.0 RC 1