+ Reply to Thread
Results 1 to 2 of 2

How to activate a dynamically-named workbook in VBA

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    25

    How to activate a dynamically-named workbook in VBA

    Hi I have a workbook named "Master" that contains a macro. The macro creates a new workbook from this, names it and saves it (for example, the child workbook is named "Master_mm-dd-yy" using today's date.

    In the macro I can activate the original sheet by adding the code
    Code:
    Please Login or Register  to view this content.
    but i don't know how to activate the new workbook since I don't know what name to put in this line in the code (since the name will depend on the date on that day)

    Can anyone provide a suggestion?

    Thank you!

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,575

    Re: How to activate a dynamically-named workbook in VBA

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Dynamically re-name a Named Range
    By jeremytapkeg in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-10-2013, 06:46 PM
  2. [SOLVED] Trying to save worksheet as a dynamically named PDF
    By RebeccaEllis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-15-2012, 06:31 PM
  3. [SOLVED] Workbook.Activate / Window.Activate problem
    By Tim in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2006, 07:40 PM
  4. [SOLVED] Dynamically Activate a Combo Box
    By Greg Hoffman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2006, 12:50 AM
  5. Activate Variable Named Workbooks
    By HelpMe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2005, 11:17 AM

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