Well, obviously, if you change:
ActiveDocument
to:
Selection
only the selected content will be processed. More complicated code could be used to process the entire range associated with a selection's heading - but only if you're using Word's heading Styles.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|