How to run macros as one close a excel?
S Simon Lloyd Jan 13, 2009 #2 In the ThisWorkbook Module Code ------------------- Private Sub Workbook_BeforeClose(Cancel As Boolean 'MY MACR End Su ------------------- -- Simon Lloy Regards, Simon Lloyd 'The Code Cage' (http://www.thecodecage.com
In the ThisWorkbook Module Code ------------------- Private Sub Workbook_BeforeClose(Cancel As Boolean 'MY MACR End Su ------------------- -- Simon Lloy Regards, Simon Lloyd 'The Code Cage' (http://www.thecodecage.com
M Mike H Jan 13, 2009 #3 Hi, In VB editor double click 'This Workbook' and paste this iin on the right and enter your code. Private Sub Workbook_BeforeClose(Cancel As Boolean) 'do things End Sub Mike
Hi, In VB editor double click 'This Workbook' and paste this iin on the right and enter your code. Private Sub Workbook_BeforeClose(Cancel As Boolean) 'do things End Sub Mike