![]() |
#2
|
||||
|
||||
![]()
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
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Jennifer Murphy | Word VBA | 1 | 01-18-2014 01:20 AM |
![]() |
bburns | Word | 10 | 07-16-2013 02:34 AM |
Macro to toggle outline level | Jennifer Murphy | Word VBA | 0 | 07-08-2013 08:20 AM |
![]() |
Jamal NUMAN | Word | 1 | 04-15-2011 06:26 PM |
Outline level to Body Text | dariober | Word | 0 | 08-23-2010 02:54 AM |