If e.Sender.Gettype.name = "ToggleButton"
For Each tab As RibbonMenu.Tab In RibbonTabs
For Each group As RibbonMenu.Group In tab.Groups
For Each btn As object In group.Items
If btn.Gettype.name = "ToggleButton" Then
btn.pressed = False
End If
Next
Next
Next
e.sender.pressed = True
End If