+ Reply to Thread
Results 1 to 3 of 3

Thread: WorkBook open Event

  1. #1
    Valued Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2007 & 2003
    Posts
    349

    WorkBook open Event

    I have a Master Workbook I use, and when I open it defaults to sheet 6 on open. Is there
    a way to default to the last active sheet when the workbook name changes . So when
    it not the master it opens on last active sheet?

    If ThisWorkbook.Name <> "Master Invoice" Then
    Sheets("Sheet6").Select
    else last active sheet on close ?
    Last edited by zplugger; 12-30-2011 at 05:05 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    12-28-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    276

    Re: WorkBook open Event

    All you'd need for that would be:

    If ThisWorkbook.Name = "Master Invoice" Then Sheets("Sheet6").Select
    Otherwise it will open at the sheet it was on when last saved.

  3. #3
    Valued Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2007 & 2003
    Posts
    349

    Re: WorkBook open Event

    That did it.

    Thank You

+ 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.2.0