+ Reply to Thread
Results 1 to 3 of 3

Code to open a another workbook from a macro, but have it opened and not be the active

  1. #1
    Registered User
    Join Date
    01-22-2014
    Location
    Potosi, MO
    MS-Off Ver
    Excel 2013
    Posts
    64

    Question Code to open a another workbook from a macro, but have it opened and not be the active

    Im looking for code to open a workbook from within a workbook, but have the newly opened workbook, not be the active window. My issue is that the first thing that pops up when opening the new workbook is a userform. I need the user form on top, but I need the workbook that has the macro that opened it, to stay active...not the workbook that has the user form. Is this possible? I would just record a macro to do so, but I guess you can not record one while a userform is up... ideas?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Code to open a another workbook from a macro, but have it opened and not be the active

    Try hiding the workbook you are opening before opening the userform.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    01-22-2014
    Location
    Potosi, MO
    MS-Off Ver
    Excel 2013
    Posts
    64

    Re: Code to open a another workbook from a macro, but have it opened and not be the active

    I see why you are a "Forum Guru". Thanks so much

+ 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] If workbook is opened, simply don't ask to open it and keep running the macro
    By LewisM in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-19-2014, 12:50 PM
  2. Personal Macro Workbook in Windows/Office 2007 does not open when Excel is opened
    By Rachel716 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-11-2012, 02:01 PM
  3. Running code in one open workbook another active
    By shumba in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-14-2010, 04:20 AM
  4. Macro for inserting code into another workbook, to run when opened
    By hriggs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-19-2009, 11:07 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