View Single Post
 
Old 08-09-2011, 04:10 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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 Saints,

You can certainly change the '<' and '>' characters to something else - they're only in the code to meet the OP's requirements. Simply deleting them would be problematic, because the code is written to look for the longest possible string not containing those characters.
I'm not sure what you mean with your second question. If all you want to do is to delete the '<' and '>' characters (and, perhaps, remove character formatting from the intervening text), you wouldn't need this kind of macro - a wildcard Find/Replace would do the job, where:
Find = \<([!\>\<]{1;})\>
Replace = \1
and you set the Replacement font style to 'regular' with no 'effects'.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote