Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get the name of all workbooks open from access
I would like to create a routhine from access that get the Name of all
workbook open in my Windows session. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get the name of all workbooks open from access
Sub Test()
Dim wbk As Excel.Workbook For Each wbk In Excel.Workbooks MsgBox wbk.Name Next wbk End Sub The only note with this is that if the user has multiple instances of Excel oen then it will only look at the active instance. -- HTH... Jim Thomlinson "Xav" wrote: I would like to create a routhine from access that get the Name of all workbook open in my Windows session. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get the name of all workbooks open from access
This code works from and to the current Excel instance.
The fact is if I have more than one instance of Excel open I don't know how to access those instances. I suppose the answer might be to use GetObject? But does anybody know how to look up all the Excel instance. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get the name of all workbooks open from access
I am affraid I can't help you there. I always keep things in one instance of
Excel. In my experience multiple instances is problematic at the best of times... -- HTH... Jim Thomlinson "Xav" wrote: This code works from and to the current Excel instance. The fact is if I have more than one instance of Excel open I don't know how to access those instances. I suppose the answer might be to use GetObject? But does anybody know how to look up all the Excel instance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
When I open Excel, workbooks open automatically. How can I stop t | Excel Discussion (Misc queries) | |||
Excel 2003 Workbooks.Open with CorruptLoad=xlRepairFile fails on Excel 5.0/95 file due to Chart, with Error 1004 Method 'Open' of object 'Workbooks' failed | Excel Programming | |||
Workbooks.Open doesn't open file in ThisWorkbook | Excel Programming | |||
Workbooks.Open closes other workbooks | Excel Programming | |||
Workbooks.Open / .Open Text - How do you stop the .xls addition? | Excel Programming |