+ Reply to Thread
Results 1 to 6 of 6

One macro to call upon other macros in different Excel instances.

  1. #1
    Registered User
    Join Date
    12-18-2013
    Location
    Los Angeles, US
    MS-Off Ver
    Excel 2010
    Posts
    16

    One macro to call upon other macros in different Excel instances.

    I have a large data set and running macro A on it will take a very long time. Usually I will create 12 Excel instances and assign each instances to one processor. Then kick off macro A in every 12 instances. This takes a lot manual work because there are several inputs that user need to enter when kicking off macro A.

    I have attempted to create one master macro that will tell each of 12 instances to kick off macro A and pick the necessary input from a predetermine area. The problem I have encountered now is that when I tell instance 1 to run macro A, it will start running macro A. I cannot immediately tell instance 2 to run macro A until instance 1's macro A is finished. My goal is to have all 12 instance to macro A simultaneously. I could do it manually by going to each instance and hit the macro button. But there is a way for me to do it in one master macro?

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: One macro to call upon other macros in different Excel instances.

    Have you tried it with twelve copies of Macro A (Macro A - Macro L)?
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    12-18-2013
    Location
    Los Angeles, US
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: One macro to call upon other macros in different Excel instances.

    Yes. I did. I have to manually go to each instances and hit macro button and then enter the necessary inputs. It works; every instances start running macro A simultaneously.

    I like to remove the manual effort in the process. It removes chances of human error and provides faster speed.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: One macro to call upon other macros in different Excel instances.

    Can you post your macro here? Be sure to highlight it and click on the # to add code tags.

  5. #5
    Registered User
    Join Date
    12-18-2013
    Location
    Los Angeles, US
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: One macro to call upon other macros in different Excel instances.

    I get this problem solved by putting the macro in the "workbook_open" section. And then use shell function to open 12 excel instances. Upon opening the workbook, the macro is automatic run.

    How do I mark this thread solved?

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: One macro to call upon other macros in different Excel instances.

    To mark the thread solved, Go To Thread Tools up top

+ 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] Macro to close every Workbook in all Excel instances.
    By mortphil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2015, 03:05 PM
  2. [SOLVED] opening seperate excel instances macro
    By Quicksnot in forum Excel General
    Replies: 8
    Last Post: 06-27-2014, 02:50 PM
  3. [SOLVED] Call Methods of All Instances of a Class
    By publius190 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2013, 04:37 PM
  4. Macro to Call/Run Other Macros Based on Conditions
    By ExcelGuy160 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-20-2010, 06:18 PM
  5. [SOLVED] How do I make a macro call on different macros
    By fubr69z in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-03-2005, 07:10 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