Dear Excellers,
I'm creating a code that I'd like to bind to a button.
I'd like the code to exit Excel completely if there aren't any other workbooks open.
Should there be more workbooks open, then it should just close the workbook inwhich the code is placed.
Current thoughts on the code:
So could you either help me out by providing the code that counts the number of open workbooks or hand me a new code with a different view on things.![]()
Please Login or Register to view this content.
Would be greatly appreciated.
Regards,
MitchelDZ
Bookmarks