Question about personal.xls workbook.
Entering the code below in the personal.xls workbook will activate the message box every time I open any Excel application.
Public Sub Workbook_Open()
MsgBox ("Hello")
End Sub
However, when I enter the following code in the personal workbook it will not automatically activate the msgbox before print and before close.
Sub Workbook_Activate()
MsgBox ("Print")
End Sub
Public Sub Workbook_BeforeClose(Cancel As Boolean)
MsgBox ("goodbye")
End Sub
Why is this and how can I program a certain event to happen before printing and closing for all workbooks?
Thanks,
Brian
Bookmarks