If you would like to be able to turn off and on particular toolbars, follow the codes.

officeviewer1.ActiveDocument.commandbars (“Formatting”).visible = False