Article ID: 182788
Article Last Modified on 8/16/2006
Sub CountSections()
MsgBox ActiveDocument.Sections.Count & " section(s)."
End Sub
For more information about returning section information, click the Office
Assistant while in the Visual Basic Editor, type sections, click Search,
and then click to view "Sections Collection Object."
176476 OFF: Office Assistant Not Answering Visual Basic Questions
181058 OFF98: How to Run Sample Code from Knowledge Base Articles
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: wordcon vb vba vbe
Keywords: kbcode kbdtacode kbhowto kbmacroexample kbprogramming KB182788