View Single Post
 
Old 04-24-2012, 10:49 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi b0x4it,

'\sel' has nothing to do with a paragraph - it's just the current selection.
Quote:
I am trying to automatically select the current paragraph and then run the code modifying all the field in the selection that is current paragraph.
In that case, simply change:
For Each oFld In Selection.Fields
to:
For Each oFld In Selection.Paragraphs.First.Range.Fields
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote