Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
multithreading / distributing excel code
I'm fairly sure I know the answer to this (ie no)... but.. I've
inherited a vba coded market risk model which takes a looong (hours) to run which I'd like to speed up. Is it possible to multithread vba? Is it possible to distribute over more than one machine? I suspect that these are both impossible in vba, but is there any support available which won't need a rewrite in some other language? Cheers Chris |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
multithreading / distributing excel code
The answer to both is no AFAIK, but why don't you post the portions of code
that are the worst offenders with some narrative and see if anyone can help speed it up. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) wrote in message ps.com... I'm fairly sure I know the answer to this (ie no)... but.. I've inherited a vba coded market risk model which takes a looong (hours) to run which I'd like to speed up. Is it possible to multithread vba? Is it possible to distribute over more than one machine? I suspect that these are both impossible in vba, but is there any support available which won't need a rewrite in some other language? Cheers Chris |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
multithreading / distributing excel code
In straight VBA you're out luck, unless you can improve the efficiency of
your code. If you have access to VB5/6, an ActiveX exe can be used like this. Not sure if spawning multiple instances of Excel to process parts would help; you would need to coordinate the results from each. As Bob suggested, post simplfied code of a bottleneck and see if anyone can offer an improvement. NickHK roups.com... I'm fairly sure I know the answer to this (ie no)... but.. I've inherited a vba coded market risk model which takes a looong (hours) to run which I'd like to speed up. Is it possible to multithread vba? Is it possible to distribute over more than one machine? I suspect that these are both impossible in vba, but is there any support available which won't need a rewrite in some other language? Cheers Chris |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
multithreading / distributing excel code
Cool - thought this might be the case... was just an idea I was
mulling over thanks for you help - I'll doubtless be back with more specific examples Chris NickHK wrote: In straight VBA you're out luck, unless you can improve the efficiency of your code. If you have access to VB5/6, an ActiveX exe can be used like this. Not sure if spawning multiple instances of Excel to process parts would help; you would need to coordinate the results from each. As Bob suggested, post simplfied code of a bottleneck and see if anyone can offer an improvement. NickHK roups.com... I'm fairly sure I know the answer to this (ie no)... but.. I've inherited a vba coded market risk model which takes a looong (hours) to run which I'd like to speed up. Is it possible to multithread vba? Is it possible to distribute over more than one machine? I suspect that these are both impossible in vba, but is there any support available which won't need a rewrite in some other language? Cheers Chris |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Best method of distributing code | Excel Discussion (Misc queries) | |||
Multithreading in Excel | Excel Discussion (Misc queries) | |||
Bug in Excel? Excel Multithreading ERROR | Excel Programming | |||
distributing xl with vba code - how to know what's needed | Excel Programming | |||
Distributing code | Excel Programming |