how to detect change of calculation-option

  • Thread starter Thread starter Joerg Lensing
  • Start date Start date
J

Joerg Lensing

Hi NG,
If a user changes the dialog EXTRA/OPTIONS/CALCULATION, I want to start
a Makro. How can I do this? (Excel 2003)

tx Jörg
 
Jörg,

You can check with and event. For example, checking after the user changes the selection:

In a standard module:

Option Explicit
Public CalcMode As XlCalculation


In the codemodule of the ThisWorkbook object:

Private Sub Workbook_Open()
CalcMode = Application.Calculation
End Sub

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
If Application.Calculation <> CalcMode Then
MsgBox "Calc Mode has changed"
CalcMode = Application.Calculation
End If
End Sub


HTH,
Bernie
MS Excel MVP


Hi NG,
If a user changes the dialog EXTRA/OPTIONS/CALCULATION, I want to start
a Makro. How can I do this? (Excel 2003)

tx Jörg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top