How do you show a message box (MsgBox) when no excel file is opened but Excel is running.
Sometimes I have Excel open but no workbook, I have a couple macros that inform the user that a specific type file is required to run the given macro.
I am using a tool bar with drop downs for users to select a macro and I just stumbled on this, if I dont have a workbook open the macro that is a message will fail.
Which high-lites the MsgBox portion of code depicting it as failed.Run-time error '91':
Object variable or with block variable not set
Edit:![]()
Please Login or Register to view this content.
Remove Color codes
Bookmarks