+ Reply to Thread
Results 1 to 3 of 3

Open a specific worksheet

Hybrid View

  1. #1
    don
    Guest

    Open a specific worksheet

    Hi,

    Just reading some of the other posts I am drawn to ask a follow up
    question. I have a workbook with sheets named for each month of the year.

    Is it possible to have the opening sheet open on the month of the year..
    so jan is the opening sheet during January and February the opening
    sheet in february etc etc.

    Regards

    Don

  2. #2
    Bob Phillips
    Guest

    Re: Open a specific worksheet

    Option Explicit

    Private Sub Workbook_Open()
    Worksheets(Format(Date, "mmmm")).Activate
    End Sub

    'This is workbook event code.
    'To input this code, right click on the Excel icon on the worksheet
    '(or next to the File menu if you maximise your workbooks),
    'select View Code from the menu, and paste the code

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "don" <don.hart1@ntlworld.com> wrote in message
    news:TYBhf.4909$a15.852@newsfe5-win.ntli.net...
    > Hi,
    >
    > Just reading some of the other posts I am drawn to ask a follow up
    > question. I have a workbook with sheets named for each month of the year.
    >
    > Is it possible to have the opening sheet open on the month of the year..
    > so jan is the opening sheet during January and February the opening
    > sheet in february etc etc.
    >
    > Regards
    >
    > Don




  3. #3
    don
    Guest

    Re: Open a specific worksheet

    Bob Phillips wrote:
    > Option Explicit
    >
    > Private Sub Workbook_Open()
    > Worksheets(Format(Date, "mmmm")).Activate
    > End Sub
    >
    > 'This is workbook event code.
    > 'To input this code, right click on the Excel icon on the worksheet
    > '(or next to the File menu if you maximise your workbooks),
    > 'select View Code from the menu, and paste the code
    >

    many thanks bob thats fantastic

    regards

    don

+ 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