Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to ensure a VBA sub is run before closing a workbook
What syntax would I use to make sure specific subs are run before Excel
closes the active workbook. These subs are error checks and I need VBA to vet the data and alert the user there are errors before the workbook is closed. Is it the Workbook_Before Close event?. I tried adding the syntax below but it didn't trigger the subs. Also would an On Save type event (if there is one) be a better alternative. Can anyone recommend a solution with some code please. Many thanks Jacqui Private Sub Workbook_BeforeClose() Qualifiers_Check Disable_Check End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to ensure workbook is saved before exiting Excel? | Excel Discussion (Misc queries) | |||
When opening a workbook, need to ensure user opens in a certain ce | Excel Discussion (Misc queries) | |||
Closing Hidden Workbook when Active Workbook is Closed | Excel Programming | |||
How to ensure function does not refer to cells outside of workbook? | Excel Programming | |||
closing excel after closing a workbook | Excel Programming |