Visualizzare le sezioni di un documento Word

Ho un documento Word fatto così:

Queste quattro righe di codice

MsgBox ActiveDocument.Sections.Count
MsgBox ActiveDocument.Sections.Item(1).Range
MsgBox ActiveDocument.Sections.Item(2).Range
MsgBox ActiveDocument.Sections.Item(3).Range

hanno il seguente effetto:

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>