I am trying to create a macro on a userform which displays a message box, which closes the active workbook without saving when yes is clicked.
The below code is giving me run time error 1004 Method 'Close' of object 'Workbook' failed:
![]()
Please Login or Register to view this content.
Bookmarks