Hi Jennifer,
Other than adding a bit more structure and simplifying the code a bit, the code seems fine.
Code:
Sub MyOutlineLevel()
Dim ParOutline As Long
ParOutline = Selection.Paragraphs(1).OutlineLevel
With ActiveWindow.View
Select Case .Type
Case wdNormalView, wdPrintView
If ParOutline <> 10 Then .ShowHeading ParOutline
.Type = wdOutlineView
Case wdOutlineView
.ShowAllHeadings
.Type = wdNormalView
Case Else
End Select
End With
End Sub