Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find names of all open workbooks
Hi, is there a way to cycle through all possible open workbooks? In order
to get the name of each and store this in an array? Many thanks. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find names of all open workbooks
dim arNames() as String
Dim i as Long, bk as Workbook Redim arNames(1 to workbooks.count) i = 1 for each bk in Application.workbooks arNames(i) = bk.Name i = i + 1 Next -- Regards, Tom Ogilvy "Graham Whitehead" wrote: Hi, is there a way to cycle through all possible open workbooks? In order to get the name of each and store this in an array? Many thanks. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find names of all open workbooks
Thanks Tom
"Tom Ogilvy" wrote in message ... dim arNames() as String Dim i as Long, bk as Workbook Redim arNames(1 to workbooks.count) i = 1 for each bk in Application.workbooks arNames(i) = bk.Name i = i + 1 Next -- Regards, Tom Ogilvy "Graham Whitehead" wrote: Hi, is there a way to cycle through all possible open workbooks? In order to get the name of each and store this in an array? Many thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
using find in 2 or 3 workbooks that are open | Excel Discussion (Misc queries) | |||
how to open workbooks with different names | Excel Programming | |||
find open workbooks | Excel Programming | |||
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 | |||
Open workbooks with different names | Excel Programming |