Hi Guys,
can anyone help in saving and closing the excel File using a VBA code? and also is it posible to disable the minimize restore and close buttons of the excel workbook?
Printable View
Hi Guys,
can anyone help in saving and closing the excel File using a VBA code? and also is it posible to disable the minimize restore and close buttons of the excel workbook?
though generally it is safer to specify the workbook by name, also if you want to close excelCode:activeworkbook.save
activeworkbook.close
robdog may have some code to disable the red X, search in his posts at top of forumCode:workbooks("myworkbook.xls").close
application.quit