+ Reply to Thread
Results 1 to 6 of 6

Is it possible to define an oppening page in a woorkbook?

  1. #1
    Registered User
    Join Date
    05-16-2006
    Posts
    25

    Question Is it possible to define an oppening page in a woorkbook?

    I there i have a big woorkbook and i woul like to add some kind of index in the first page so I could have a better track of my data.
    Like a cover page, instead of opening in the last page when I saved the document.

    Hope you guys can help me on this.

  2. #2
    Norman Jones
    Guest

    Re: Is it possible to define an oppening page in a woorkbook?

    Hi B,

    As a starting point, see David McRitchies Table of Contents page at:

    http://www.mvps.org/dmcritchie/excel/buildtoc.htm


    ---
    Regards,
    Norman


    "BLopes" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I there i have a big woorkbook and i woul like to add some kind of index
    > in the first page so I could have a better track of my data.
    > Like a cover page, instead of opening in the last page when I saved the
    > document.
    >
    > Hope you guys can help me on this.
    >
    >
    > --
    > BLopes
    > ------------------------------------------------------------------------
    > BLopes's Profile:
    > http://www.excelforum.com/member.php...o&userid=34507
    > View this thread: http://www.excelforum.com/showthread...hreadid=542733
    >




  3. #3
    Registered User
    Join Date
    05-16-2006
    Posts
    25
    This is a good link to a future idea. Thank you Norman.
    What i want for now is a way to always open a woorkbook in the same woorksheet.
    Is this possible in a simple way?

  4. #4
    Norman Jones
    Guest

    Re: Is it possible to define an oppening page in a woorkbook?

    Hi B,

    > What i want for now is a way to always open a woorkbook in the same
    > woorksheet.
    > Is this possible in a simple way?


    Try:
    '=============>>
    Private Sub Workbook_Open()
    Const SheetToOpen As String = "Sheet2" '<<==== CHANGE

    Me.Sheets(SheetToOpen).Activate
    End Sub
    '<<=============

    Change "Sheet2" to the name of the sheet of interest.

    This is workbook event code and should be pasted into the workbook's
    ThisWorkbook module *not* a standard module or a sheet module:

    Right-click the Excel icon on the worksheet
    (or the icon to the left of the File menu if your workbook is maximised)

    Select 'View Code' from the menu and paste the code.

    Alt-F11 to return to Excel.


    ---
    Regards,
    Norman



  5. #5
    Registered User
    Join Date
    05-16-2006
    Posts
    25

    Exclamation The code didn't work

    I'm sorry Norman the code doesn't seem to work and I don't know anything about Visual Basic.

    When I open de code in any sheet and select woorksheet it shows this:

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)

    End Sub


    Then I paste the code you gave me like this:

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Private Sub Workbook_Open()
    Const SheetToOpen As String = "TEST"
    Me.Sheets(SheetToOpen).Activate
    End Sub
    End Sub


    I also tested like this:

    Private Sub Workbook_Open()
    Const SheetToOpen As String = "TEST"
    Me.Sheets(SheetToOpen).Activate
    End Sub


    None of these codes opened always the same woorksheet.
    They always shown the active sheet when I last saved the document.
    I should tell I have Office2003.

    Is there any more sugestions or corrections?
    Hope to hear from you guys again.
    Thank you

  6. #6
    Registered User
    Join Date
    05-16-2006
    Posts
    25

    Talking It's Working!!!!!!

    I MISPLACED THE CODE IN THE WOORKSHEET CODE AND NOT IN THE WORKBOOK CODE IN VISUAL BASIC.

    You'll be hearing from me in a couple of days now with questions about the link you gave me.

    THANK YOU NORMAM

+ 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