Run Macro on close
Private Sub Workbook_BeforeClose(Cancel As Boolean)
'your code
End Sub
'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code
--
HTH
RP
(remove nothere from the email address if mailing direct)
"Donnie" wrote in message
...
How do I phrase the VBA to run a macro on closing the spreadsheet?
Any ideas?
Thanks
Donnie
|