ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   count number of workbooks open (https://www.excelbanter.com/excel-programming/327872-count-number-workbooks-open.html)

Ronaldo

count number of workbooks open
 
I need some VBA code to check how many workbooks are open at the same time.
Can anyone help, please.

Thanks

Harald Staff

count number of workbooks open
 
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




Bob Phillips[_6_]

count number of workbooks open
 
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







All times are GMT +1. The time now is 09:18 AM.

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