sunriderdabi
New Member
- Joined
- Mar 10, 2019
- Messages
- 1
Hi,
I am trying to set up a checkbox in the ribbon that activates/deactivates iterative calculations.
I manage to get this working. However, I don't manage to update the status of the checkbox if "iterative calculation" status is changed in Excel settings. I can have iterative calculations off while the checbox is on.
Any help is much appreciated, please see simple code below:
Sub IterationCalculations(control As IRibbonControl, pressed As Boolean)
If pressed = True Then
Application.Iteration = True
Else
Application.Iteration = False
End If
End Sub
Sub IsIteraToggled(control As IRibbonControl, ByRef returnedVal)
If Application.Iteration = True Then returnedVal = True
If Application.Iteration = False Then returnedVal = False
End Sub
I am trying to set up a checkbox in the ribbon that activates/deactivates iterative calculations.
I manage to get this working. However, I don't manage to update the status of the checkbox if "iterative calculation" status is changed in Excel settings. I can have iterative calculations off while the checbox is on.
Any help is much appreciated, please see simple code below:
Sub IterationCalculations(control As IRibbonControl, pressed As Boolean)
If pressed = True Then
Application.Iteration = True
Else
Application.Iteration = False
End If
End Sub
Sub IsIteraToggled(control As IRibbonControl, ByRef returnedVal)
If Application.Iteration = True Then returnedVal = True
If Application.Iteration = False Then returnedVal = False
End Sub