Hi,
After hours of readings and tries, I don't get how to change the value of a toggle button to false (not pressed) with VBA.
Any hint?
After hours of readings and tries, I don't get how to change the value of a toggle button to false (not pressed) with VBA.
Code:
Sub TbtnManClick(control As IRibbonControl, [COLOR=#006400]Pressed[/COLOR] As Boolean)
Dim Manvalue As Variant
Manvalue = InputBox(Range("LgMan"), Range("LgMan"), Range("RngMan"))
Range("RngMan") = Manvalue
[COLOR=#ff0000]If I message MsgBox the value of "Pressed", I will have true and false depending on the button situation but if I change true to false, it does not impact the button situation[/COLOR]
End Sub
Sub GetPressed(control As IRibbonControl, ByRef [COLOR=#006400]Pressed[/COLOR])
[COLOR=#006400]Pressed[/COLOR] = False
End Sub
Any hint?