On Error GoTo MainStop If ActiveWindow.View.ShowAll = False Or ActiveWindow.View.ShowHiddenText = False Then With ActiveWindow With .View .ShowHiddenText = True .ShowAll = True End With End With Else With ActiveWindow With .View .ShowHiddenText = False .ShowAll = False End With End With End If MainStop: If Err.Number <> 0 Then End If