Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default 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






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
List Open Workbooks in a combobox JasonSelf[_21_] Excel Programming 2 September 15th 05 07:45 PM
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 Frank Jones Excel Programming 2 June 15th 04 03:21 AM
Dialog Box List of Current Open Workbooks Frank & Pam Hayes Excel Programming 2 January 25th 04 02:28 PM
Getting list of open workbooks [email protected] Excel Programming 7 November 26th 03 09:09 PM
List Open Workbooks in VBA Chip Pearson Excel Programming 1 November 17th 03 05:21 PM


All times are GMT +1. The time now is 11:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"