Currently I can run 2 Excel VBA processes simultaniously within 2 seperate Excel instances on 1 PC.
My goal is to import the data from Excel instance 2 into Excel instance 1 every minute.
Unfortunately it is not possible to connect from my workbook in Excel instance 1 to the open workbook in Excel instance 2.
Since I can connect to a saved workbook, a solution could be to save the workbook in instance 2 every minute and retrieve the new data from the saved workbook.
Although this is a rather heavy method. Is there a better solution to connect to another open workbook in another instance of Excel?
(To open the workbook in the same instance is no solution since in that case I can no longer run 2 VBA processes simultaniously.)
Thanks!
Short version
Long version using API calls (from Excel Help file for
GetObject()
)Not sure what you mean with two Excel VBA processes simutaneously but if you have a workbook open in a second instance of Excel you could get access with GetObject