+ Reply to Thread
Results 1 to 4 of 4

Multiple Instances of Excel

Hybrid View

c_leven3 Multiple Instances of Excel 02-02-2010, 11:51 AM
shg Re: Multiple Instances of... 02-02-2010, 12:07 PM
Leith Ross Re: Multiple Instances of... 02-02-2010, 01:03 PM
c_leven3 Re: Multiple Instances of... 02-02-2010, 02:53 PM
  1. #1
    Registered User
    Join Date
    01-20-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Multiple Instances of Excel

    I'd like to use VBA to open 3 workbooks in their own session/instance/etc of Excel 2007. Ideally, there will be one main workbook, that upon opening will subsequently open the other 3 workbooks.

    Also, when I open that first main workbook, I will obviously have to enable macros to get any code to run. Is there a way to carry this enabling of macros over to the other sessions to avoid having to enable macros in all 3 other workbooks? (Changing my security settings isn't an option)

    Thanks in advance,
    Kyle
    Last edited by c_leven3; 02-02-2010 at 02:53 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Multiple Instances of Excel

    Macros are enabled by default when you open a new Excel session via VBA.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Multiple Instances of Excel

    Hello c_leven3,

    Here is a macro that will create a new instance of Excel when run.
    Sub StartExcel()
      Dim xlApp As Object
        Set xlApp = CreateObject("Excel.Application")
        xlApp.Visible = True
        xlApp.WindowState = xlMinimized
        Set xlApp = Nothing
    End Sub
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Registered User
    Join Date
    01-20-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Multiple Instances of Excel

    Great! Thanks to both of 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.6.0 RC 1