Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I open a rating workbook which, when a userform button is pressed,
opens another instance of excel and runs multiple workbooks that do many calculations. When this is completed, i want the next part of the rating code to remember the path for one of the two workbooks that are left open in the other instance of excel. When i try looking through the available workbooks, i get: personal.xls Book1.xls rating.xls These are the workbooks that are open in the 1st instance of excel. How do i look at the workbooks in the 2nd instance.? property listing.xls summary.xls I thought this code might do it, but just keeps looping through the 1st instance, without moving to the 2nd. Code: Do Set XLAPP = GetObject(, "Excel.Application") If Not XLAPP Is Nothing Then For Each wkbk In XLAPP.Workbooks If wkbk.Name = "Property Listing - " & UserForm2.ComboBox1.Value & ".xls" Then wkbk.Saved = True x = wkbk.Path wkbk.Close End If Next wkbk End If Loop So what i want to do is: open my rating workbook press the userform button have a 2nd instance of excel open have multiple workbooks open to do calculations, leaving only 2 workbooks remaining so far so good have x = the path of the propertylisting workbook x is in the code of the rating workbook userform and i can't get to read the workbooks that are in the other instance of excel. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Force excel to start new instance when I double-click a workbook | Excel Discussion (Misc queries) | |||
find full file path of running excel instance | Excel Programming | |||
Run Macro in another workbook already OPENED in another instance of Excel | Excel Programming | |||
How do I get one instance of Excel to communicate with another instance? | Excel Programming | |||
Move a workbook from one instance of excel applicaiton to another | Excel Programming |