Hi
My Workbook_BeforeClose event does not execute
I wanted my workbook to calculated before it closes
I put in the message box just to see if it would display. It does not
and it does not call calcbook
I have it on ThisWorkbook
I am working with excel 2007, is there and option I need to activate?
Thanks
L
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.EnableEvents = True
Sheets("Data").Select
ActiveSheet.Calculate
Application.Calculation = xlAutomatic
Application.CalculateBeforeSave = True
Call CalcBook
MsgBox ("HELLO")
End Sub
My Workbook_BeforeClose event does not execute
I wanted my workbook to calculated before it closes
I put in the message box just to see if it would display. It does not
and it does not call calcbook
I have it on ThisWorkbook
I am working with excel 2007, is there and option I need to activate?
Thanks
L
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.EnableEvents = True
Sheets("Data").Select
ActiveSheet.Calculate
Application.Calculation = xlAutomatic
Application.CalculateBeforeSave = True
Call CalcBook
MsgBox ("HELLO")
End Sub