![]() |
#1
|
|||
|
|||
![]()
Hi, it has been ages since the last time I coded VBA, but alway Excel and some Access.
Now is time on Word. I'm glad I found you! Sections of my document fall under the heading style of heading 2. The section headings will be labeled for instance: Section Heading 1 Section Heading 2 Section Heading 3 Section Heading 4 Section Heading 5 Some or all of these headings may exist in a document and they may not appear in the order listed above. on running the macro I would like the sections in the document to be ordered so that they match the list above. I'm just starting with this code, but I can't understand what I'm seeing watching Sec. Code:
Dim Sec As Section For Each Sec In ActiveDocument.Sections Next Sec |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Cov_ATC | Word VBA | 10 | 11-28-2021 03:41 PM |
Add, Resize & Relocate Header & Footer with Macros | Sarah123 | Word VBA | 11 | 11-13-2018 07:15 AM |
Looping through emails | knarfreppep | Outlook | 2 | 04-07-2018 08:03 AM |
Looping Question | Steve B | PowerPoint | 0 | 01-19-2011 10:44 AM |
Relocate footnotes to facing page | Wydeye | Word | 0 | 02-23-2010 05:48 PM |