+ Reply to Thread
Results 1 to 4 of 4

Go to certain worksheet on opening workbook

  1. #1
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,077

    Go to certain worksheet on opening workbook

    I want to force a particular worksheet (tab name "Instructions") to be the front page of a workbook, even if the previous user saved and closed from a different worksheet.

    I found this piece of code on the forum (thanks to whoever posted it )
    Please Login or Register  to view this content.
    and pasted it into a module, but it doesn't seem to work.

    Thanks in anticipation!
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565
    Hi Trish,

    The following code (which executes each time the workbook is opened) will do the trick:

    Please Login or Register  to view this content.
    HTH

    Robert

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Hi
    That code belongs in the workbook module,
    Check here to see where that is

    http://www.contextures.com/xlvba01.html

    should be more effective in the workbook open event though

  4. #4
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,077
    Quote Originally Posted by Trebor76
    Hi Trish,

    The following code (which executes each time the workbook is opened) will do the trick:

    Please Login or Register  to view this content.
    HTH

    Robert
    This does exactly what I need. Thanks, Robert.

    Thanks for the link, Dave. I'll check it out. I'm sure I'll find something useful in this steep learning curve I'm on.

+ 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