Good morning,
How can I loop through each section of a document? I would like to go to
the 1st page of section 1 of the doc. perform an action, then move on to
section 2 and perform the same action, and so on and so on until I have gone
through all the sections in a document.
Thank you,
Daniel
Greg Maxey - 24 Nov 2005 17:02 GMT
Something like:
Sub ScratchMacro()
Dim oSec As Section
For Each oSec In ActiveDocument.Sections
MsgBox "Do something"
Next
End Sub

Signature
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.
> Good morning,
>
[quoted text clipped - 6 lines]
>
> Daniel
Daniel - 24 Nov 2005 17:35 GMT
Thank you
> Something like:
>
[quoted text clipped - 15 lines]
> >
> > Daniel