ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   List of open workbooks (https://www.excelbanter.com/excel-programming/343608-list-open-workbooks.html)

Josh[_12_]

List of open workbooks
 
is there a function or property that I can use that will give me a list of
all open work books currently running in excell 2003? I would like to know
what books are open so that my macro can close them if need be.

Thank you
Josh



Tom Ogilvy

List of open workbooks
 
for each bk in Application.Workbooks
msgbox bk.Name
Next

--
Regards,
Tom Ogilvy

"Josh" wrote in message
...
is there a function or property that I can use that will give me a list of
all open work books currently running in excell 2003? I would like to

know
what books are open so that my macro can close them if need be.

Thank you
Josh





Josh[_12_]

List of open workbooks
 
That was easy. thank you

Josh
"Tom Ogilvy" wrote in message
...
for each bk in Application.Workbooks
msgbox bk.Name
Next

--
Regards,
Tom Ogilvy

"Josh" wrote in message
...
is there a function or property that I can use that will give me a list
of
all open work books currently running in excell 2003? I would like to

know
what books are open so that my macro can close them if need be.

Thank you
Josh








All times are GMT +1. The time now is 04:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com