+ Reply to Thread
Results 1 to 5 of 5

Parallel Processing

  1. #1
    Registered User
    Join Date
    09-18-2012
    Location
    San Francsico
    MS-Off Ver
    Excel 2003
    Posts
    6

    Parallel Processing

    I am running a macro that takes a really long time to run because there are so many iterations that need to be tested. The results of each iteration are independent but will be summarized at the end with a graph or table. For simplicity's sake, let's say the code goes something like this:

    Please Login or Register  to view this content.
    Is there a way to do these calculations in parallel? I don't know much about parallel processing but I have been reading about asynchronous UDF's for Excel 2010. I just can't find any examples that are in layman's terms.

  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: Parallel Processing

    I've not used them, but from http://msdn.microsoft.com/en-us/libr...ffice.14).aspx it appears that you need to create an XLL, and that
    Asynchronous UDFs are ideal for any function that takes a long time to complete, but does not actually perform local, intensive processor operations.
    ... which does not appear to be the case for your example.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    09-18-2012
    Location
    San Francsico
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Parallel Processing

    Yes, it does not seem to apply exactly to what I am trying to do. Do you have any other ideas for implementing parallel processing in VBA or another technique for cutting the time down on this calculation? I don't think I am using anywhere near my computer's full capabilities and it is taking forever.

  4. #4
    Forum Contributor
    Join Date
    04-24-2007
    Location
    NYC
    MS-Off Ver
    2k3/2k7/2010
    Posts
    270

    Re: Parallel Processing

    You can open X instances of excel to the amount of cores in your pc. Set each excel instance to a different core. Then run a set range on each one. Once they are all finished copy them back into 1 sheet and do what you need.

    Consider posting the original code. There might be a more efficient way to handle your calculation that doesn't involve nested loops.

  5. #5
    Registered User
    Join Date
    09-18-2012
    Location
    San Francsico
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Parallel Processing

    Is there a way to do that programmaticaly?

+ 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. Sheet-related processing causes Excel VBA Userform to stop processing Tab/Enter
    By Joaquin M Lopez Muno in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-22-2014, 03:02 PM
  2. Reduce processing time for processing multiple excel sheets
    By rexer231 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2014, 09:25 AM
  3. Creating A Parallel Processing Environment in Excel
    By SDruley in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2012, 11:21 PM
  4. Running two vba macros in parallel
    By Milos Setek in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-09-2008, 09:26 AM
  5. Looping across two parallel ranges
    By colin_e in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2006, 07:25 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