Hello,
I am working on making a project more efficient by breaking up the subs and putting each into it's own file so that each can run simultaneously (mimicking multithreading). First pass allowed me to create shared variables where the data in one variable (e.g. raw data stored in an array) can be shared among several workbooks (in the same instance of excel), but when I tried to create a parallel sequence, Excel refuses. It runs one file and waits for it to finish completely before moving to the nextfile.
Does anyone know of any tricks to simulate multithreading? I have heard of using vbs, Application.ontime and Waitformultipleobjects API. Does anyone have any examples of any method?
Right now I ended up having to start a new session of Excel and running each fie manually. What I would like to do is have one master and several slave files that can run in parallel.
Thanks.
abousetta
Bookmarks