Quit Event Example

This example ensures that the Standard and Formatting toolbars are visible before the user quits Word. As a result, when Word is started again, the Standard and Formatting toolbars will be visible.

Private Sub myApp_Quit()
    CommandBars("Standard").Visible = True
    CommandBars("Formatting").Visible = True
End Sub