It is more complicated than just storing data. I need to be able to refer to each instance from the code that is running in the main instance.
Example:
Run Macro in Instance 1.
The macro does somethings in instance 1....then
Opens a new instance #2 and does some things in that instance.
Then activates instance 1 and use information from instance 2 to populate cells
I currently have this code working, but have to store each instance variable in a public variable. This creates 2 problems: I can only refer to an instance opened by the macro and it is unstable and easy for the pubic variables to be cleared. I need a more permanent way to refer to an instance in excel. I thought storing handles for each instance was a building block to the solution and that is what the posted code does.
Main Topics
Browse All Topics





by: TiranDagan55Posted on 2009-11-08 at 00:48:38ID: 25769840
have you considered using registry variables or data files to exchange information amoung the instances?