+ Reply to Thread
Results 1 to 6 of 6

Return to certain tab each time workbook is opened

Hybrid View

warrima Return to certain tab each... 11-10-2009, 06:26 AM
teylyn Re: Return to certain tab... 11-10-2009, 06:35 AM
warrima Re: Return to certain tab... 11-10-2009, 06:46 AM
teylyn Re: Return to certain tab... 11-10-2009, 06:49 AM
warrima Re: Return to certain tab... 11-10-2009, 08:31 AM
teylyn Re: Return to certain tab... 11-10-2009, 05:20 PM
  1. #1
    Registered User
    Join Date
    03-17-2009
    Location
    Chonburi, Thailand
    MS-Off Ver
    Excel 2007 work, 365 at Home
    Posts
    23

    Return to certain tab each time workbook is opened

    Hi,

    I have an excel file on a share site which is accessed by several people. The first tab is set up as a home page which directs the person to the relevent part of the work book that they need. My problem is that as the person saves their updates it also saves the location of the workbook they were in. I want it to return to the " homepage" automatically each time it is opened. Thanks in advance.
    Last edited by warrima; 11-10-2009 at 09:21 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Return to certain tab each time workbook is opened

    Hi, you could use a macro for the workbook before save event. When somebody attempts to save the workbook, the macro could navigate to A1 on your home page and only then save the workbook.

  3. #3
    Registered User
    Join Date
    03-17-2009
    Location
    Chonburi, Thailand
    MS-Off Ver
    Excel 2007 work, 365 at Home
    Posts
    23

    Re: Return to certain tab each time workbook is opened

    Thanks Teylyn,

    How would i go about this. What would my macro code be. Thanks for the help.

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Return to certain tab each time workbook is opened

    Hi,

    alternatively, you could use the Workbook_Open event to navigate to the desired sheet when the workbook is opened.

    Hit Alt-F11 to open the VB editor, then double click on the "This Workbook" entry on the left hand side. In the code panel enter

    Private Sub Workbook_Open()
        Sheets("Sheet1").Activate
    End Sub
    Change the "Sheet1" bit to whatever your home page is called.

    hth

  5. #5
    Registered User
    Join Date
    03-17-2009
    Location
    Chonburi, Thailand
    MS-Off Ver
    Excel 2007 work, 365 at Home
    Posts
    23

    Re: Return to certain tab each time workbook is opened

    Works a treat. Thanks a lot.

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Return to certain tab each time workbook is opened

    Glad it works for you. Could you please mark the thread as solved?

+ 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