Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 49948

Turning off a Timer Macro

$
0
0
I have the Macro
Code:

Private Sub Workbook_Open()

Recalc

End Sub

That starts a timer macro (Recalc) in my excel sheet when the workbook is opened, my issue is that when the work book closes it continues to run.

Will the following macro fix this problem, or is there some command like Workbook_Open() but for closing?
Code:

Private Sub Workbook_Close()

Disable **Macro for turning off the timer**

End Sub


Viewing all articles
Browse latest Browse all 49948

Trending Articles