View Single Post
 
Old 03-19-2013, 03:12 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,367
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 netchie,

In your initial post, you indicated that you're trying to process the contents of a table. In that case, all the code for processing storyranges is superfluous. Furthermore, even within whatever range contains the table, your code doesn't restrict itself to the table - it will happily change text outside it as well. As for problems like Restricted > Restrictedd, that's because you haven't told Word to match whole words only.

PS: When posting code, please use the code tags. They're on the 'Go Advanced' tab.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote