View Single Post
 
Old 08-09-2011, 04:17 AM
GJohansson GJohansson is offline Windows 7 32bit Office 2007
Novice
 
Join Date: Aug 2011
Posts: 17
GJohansson is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
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'.
Thanks a lot makropod, simply the best...... And the quickiest.... Whenever you want something just pm me.
Reply With Quote