'==Display or hide a toolbar: If CommandBars("Web").Visible = False Then CommandBars("Web").Visible = True Else CommandBars("Web").Visible = False End If '==Show built-in dialog box with specific tab displayed: With Dialogs(wdDialogFilePageSetup) .DefaultTab = wdDialogFilePageSetupTabPaperSource .Show End With '==Turn Spelling and Grammar wavy lines on or off: If ActiveDocument.ShowGrammaticalErrors = True Then ActiveDocument.ShowSpellingErrors = False ActiveDocument.ShowGrammaticalErrors = False Else If ActiveDocument.ShowSpellingErrors = True Then ActiveDocument.ShowSpellingErrors = False ActiveDocument.ShowGrammaticalErrors = False Else ActiveDocument.ShowSpellingErrors = True ActiveDocument.ShowGrammaticalErrors = True End If End If |