Thread
:
Check for open workbooks
View Single Post
#
2
Posted to microsoft.public.excel.programming
Adrian D. Bailey
external usenet poster
Posts: 16
Check for open workbooks
function bookcount()
bookcount=workbooks.count
end function
For your macro to work, you need bookcount to be 1
--
Adrian D.Bailey, Information and Systems Manager, Dept.Human Sciences
Loughborough University, Loughborough Leics, LE11 3TU, UK.
Tel: 01509 223007 Fax: 01509 223940
Community Warden, Storer and Burleigh Areas. Out-of-hours Tel: 01509 563263
--
"Stephen C" wrote in message
...
How do i check to find out if any other workbooks are open?
I need to do this check in a macro therefore require the VBA code.
I have a workbook with a macro in, when a user runs this macro i need it
to
check to see if any other workbooks are open. This macro will not run
correctly if others are open.
I am using Office 2000 - SP3
Reply With Quote
Adrian D. Bailey
View Public Profile
Find all posts by Adrian D. Bailey