Hi there, simple problem, I think.
I have used the attached code as a macro for a command button on a work sheet and it works fine, no problems.
For a different workbook, I have a userform with a command button that I want the use to close the workbook.
I add the code to the 'command button click', but it doesn't work...gives me the error message...
"Compile error: Sub or function not defined' and the SaveQuit part of the first If statement is highlighted.
What's causing the error?![]()
Please Login or Register to view this content.
Thanks in advance,
Frank
Bookmarks