Public Sub Toggle_is_clicked(Control As IRibbonControl, pressed As Boolean)
If pressed Then
Range("use_forms").Value = 1
Else
Range("use_forms").Value = 0
End If
End Sub
you can store it in a variable instead (declared outside the callback so that it retains its value) or in the registry or a text file.