+ Reply to Thread
Results 1 to 5 of 5

Open new instance of excel window if an excel window already open

  1. #1
    Registered User
    Join Date
    06-30-2010
    Location
    Newport New VA
    MS-Off Ver
    Excel 2003
    Posts
    97

    Open new instance of excel window if an excel window already open

    I am trying to find a way so that when ever a user opens a particular workbook it always opens in a new window.
    I have a user form attached to this workbook.

    I tried using this code and inserted into the workbook Open event.
    Please Login or Register  to view this content.
    good news and bad news.. first it does open a new window.. bad news it keeps wanting to open a new instance non stop.. and kicks out a waiting for OLE error.. So where am I suppose to put this code? here is the full code... if I'm not suppose to put it in the workbook_Open event then where?..

    Please Login or Register  to view this content.

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

    Re: Open new instance of excel window if an excel window already open

    Hello Dariusd7,

    A workbook can not decide to open itself in a new instance of Excel. However, you can have an open workbook run a macro to open another workbook in a new instance Excel.

    You can do this in using the Shell command. Here is an example to open the workbook from your macro...
    Please Login or Register  to view this content.
    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!)

  3. #3
    Registered User
    Join Date
    06-30-2010
    Location
    Newport New VA
    MS-Off Ver
    Excel 2003
    Posts
    97

    Re: Open new instance of excel window if an excel window already open

    Quote Originally Posted by Dariusd7 View Post
    I am trying to find a way so that when ever a user opens a particular workbook it always opens in a new window.
    I have a user form attached to this workbook.

    I tried using this code and inserted into the workbook Open event.
    Please Login or Register  to view this content.
    good news and bad news.. first it does open a new window.. bad news it keeps wanting to open a new instance non stop.. and kicks out a waiting for OLE error.. So where am I suppose to put this code? here is the full code... if I'm not suppose to put it in the workbook_Open event then where?..

    Please Login or Register  to view this content.
    thanks ok...............

  4. #4
    Registered User
    Join Date
    06-30-2010
    Location
    Newport New VA
    MS-Off Ver
    Excel 2003
    Posts
    97

    Re: Open new instance of excel window if an excel window already open

    Quote Originally Posted by Leith Ross View Post
    Hello Dariusd7,

    A workbook can not decide to open itself in a new instance of Excel. However, you can have an open workbook run a macro to open another workbook in a new instance Excel.

    You can do this in using the Shell command. Here is an example to open the workbook from your macro...
    Please Login or Register  to view this content.
    So can I use workbookA to open workbookB and then use code something like thisworkbook.close to close WorkbookA after workbookB is opened?

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

    Re: Open new instance of excel window if an excel window already open

    Hello Dariusd7,

    If WorkbookA is the workbook with the macro then yes you can close WorkbookA after WorkbookB has been opened.

+ 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. Open excel in new window?
    By Hippogriff in forum Excel General
    Replies: 6
    Last Post: 11-14-2006, 11:33 AM
  2. open .txt download in active instance/window
    By Ramona in forum Excel General
    Replies: 3
    Last Post: 03-28-2006, 05:35 PM
  3. excel open in new window
    By Peter in forum Excel General
    Replies: 4
    Last Post: 11-10-2005, 01:10 PM
  4. [SOLVED] Excel workbook does not open in open window on desktop
    By DeanH in forum Excel General
    Replies: 2
    Last Post: 03-08-2005, 06:06 AM
  5. [SOLVED] How do I set up Excel to open a new instance/application window w.
    By DK9144 in forum Excel General
    Replies: 1
    Last Post: 02-21-2005, 01:06 PM

Tags for this Thread

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