JackDanIce
Well-known Member
- Joined
- Feb 3, 2010
- Messages
- 9,922
- Office Version
- 365
- Platform
- Windows
Hi,
Excel version: 2003
I have a custom button on my toolbar that switches calculation of the sheet between automatic and manual. The image I've used is of a calculator.
Is it possible to have this button change it's colour depending on which status calculation the sheet is? E.g. green if automatic, red if manual. Image doesn't have to be the calculator, could just be a circle and the colour fill of it changes.
The code attached to the button is:
Thanks,
Jack
Excel version: 2003
I have a custom button on my toolbar that switches calculation of the sheet between automatic and manual. The image I've used is of a calculator.
Is it possible to have this button change it's colour depending on which status calculation the sheet is? E.g. green if automatic, red if manual. Image doesn't have to be the calculator, could just be a circle and the colour fill of it changes.
The code attached to the button is:
Code:
Sub ToggleCalc()
With Application
If .Calculation = xlCalculationAutomatic Then
.Calculation = xlCalculationManual
Else: .Calculation = xlCalculationAutomatic
End If
End With
End Sub
Thanks,
Jack