Close worksheet with Macro or Code

  • Thread starter Thread starter sanaullah
  • Start date Start date
Use this Sanaullah

ThisWorkbook.Close False ' close the file without saving

ThisWorkbook.Close True ' save and close the file
 
Back
Top