M Mandar New Member Nov 2, 2012 #1 Please help me to write a macroi for closing a open excel file on clicking a button.
anupamtiwari05 Member Nov 2, 2012 #2 Hi Mandar, Could you please provide some more details what exactly do you want? Thanks & Regards, Anupam Tiwari
Hi Mandar, Could you please provide some more details what exactly do you want? Thanks & Regards, Anupam Tiwari
M Mandar New Member Nov 2, 2012 #3 Hi Anupam, Actually I've created a button in an application as EXIT...I want the file to close after performing certain defined functions, like hiding few sheets, saving the file.
Hi Anupam, Actually I've created a button in an application as EXIT...I want the file to close after performing certain defined functions, like hiding few sheets, saving the file.
Luke M Excel Ninja Staff member Nov 2, 2012 #4 This what you're looking for? [pre] Code: Sub Examples() 'Close just this workbook ThisWorkbook.Close 'Close all of Excel Application.Quit End Sub [/pre]
This what you're looking for? [pre] Code: Sub Examples() 'Close just this workbook ThisWorkbook.Close 'Close all of Excel Application.Quit End Sub [/pre]