Robert has attended:
Excel VBA Intro Intermediate course
Event programming
How do you get code to run on workbook exit?
thanks,
Rob
RE: Event programming
Hi Robert, thanks for your query. You add the Auto_Close subroutine to your module:
Sub auto_close()
MsgBox "Goodbye"
End Sub
Try saving the worksheet and then closing it down now. It should say goodbye.
Hope this helps,
Anthony

