Hi,
Can i make any code to do this?
I have a UserForm with a 'close' CommandButton.
1) If my workbook is the only one open, i want to close the workbook and the Excel application;
2) If i have more then 1 workbook open, i only want to close my workbook.
I think i must have a way to detect if there is one or more workbooks open.
Thanks
Bookmarks