+ Reply to Thread
Results 1 to 3 of 3

can 2 excel instances act independently?

  1. #1
    Registered User
    Join Date
    06-05-2012
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    18

    can 2 excel instances act independently?

    hi,

    wbMAIN is workbook in 1st xl instance and wbOTHER is workbook in 2nd xl instance
    wbMAIN as primary platform is for my working/inputing data etc.
    the goal is to use wbOTHER in the background (hidden) to process some data (read text, process and serve)
    problem is that when i run macro in wbOTHER, my wbMAIN cannot be used (it hangs) untill the macro in wbOTHER is completed.

    this is what i have in wbMAIN normal module
    Please Login or Register  to view this content.
    in wbOTHER normal module
    Please Login or Register  to view this content.
    in wbOTHER thisworkbook module
    Please Login or Register  to view this content.
    is it possible to achieve such?
    any input/advice is appreciated.

  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: can 2 excel instances act independently?

    Hello rampal,

    Add the statement DoEvents in your loop to force VBA to yield to other processes.

    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-05-2012
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: can 2 excel instances act independently?

    Hi Leith Ross,
    i did what you suggested, but to no success. wbmain still hang until code in wbother completed.
    there is a diffrent though. when i open the wbother MANUALLY (not by macro in wbmain) i can work with its sheet (select a cell, write values to it, etc). this would get me halfway if wbmain is the one that can be worked with.

    anyway, hours of trial & error, i ended up using:
    Please Login or Register  to view this content.
    which works fine.

    note: opening with shell, but without placing the DoEvents in wbother, wbmain will hang..so i thank you for your suggestion

+ 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] Complex VLOOKUP, multiple instances vertical, return subsequent instances horizontally
    By Miles_2804 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-12-2013, 11:54 AM
  2. Replies: 0
    Last Post: 04-11-2013, 10:18 AM
  3. Replies: 3
    Last Post: 07-18-2012, 11:53 AM
  4. Excel should treat windows independently like Word.
    By FocusCS in forum Excel General
    Replies: 0
    Last Post: 03-30-2006, 07:35 PM
  5. Replies: 4
    Last Post: 02-02-2006, 03:45 PM

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