Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need some VBA code to check how many workbooks are open at the same time.
Can anyone help, please. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub test()
MsgBox Application.Workbooks.Count End Sub Note that addins are not part of the visible workbooks collection. HTH. Best wishes Harald "Ronaldo" skrev i melding ... I need some VBA code to check how many workbooks are open at the same time. Can anyone help, please. Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Note that this will include any hidden workbooks such as Personal.xls.
-- HTH RP (remove nothere from the email address if mailing direct) "Harald Staff" wrote in message ... Sub test() MsgBox Application.Workbooks.Count End Sub Note that addins are not part of the visible workbooks collection. HTH. Best wishes Harald "Ronaldo" skrev i melding ... I need some VBA code to check how many workbooks are open at the same time. Can anyone help, please. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to tell the number of current open workbooks... | Excel Worksheet Functions | |||
How to format a number cell to auto count 1 up on file open | Excel Worksheet Functions | |||
Number of workbooks open | 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 | |||
Workbooks.Open / .Open Text - How do you stop the .xls addition? | Excel Programming |