-
code to close workbook
for some reason i cannot figure out or find the code to close only the active workbook.
application.quit closes all of excel workbooks that are open. i only want to close the the workbook that the userform is in. is there a method for closing the activeworkbook?
-
Activeworkbook.Close False or Activeworkbook.Close True depending if you want to save or not.
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules