If you are set on the Forms toolbar for your checkbox, then right-click it, left click on Assign Macro, and assign it this one, which goes in a standard module:
Sub Test1()
With ActiveWindow
.DisplayWorkbookTabs = Not .DisplayWorkbookTabs
End With
End Sub