Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word VBA - Find a string and replace characters within that string.

Status
Not open for further replies.

knifey

Technical User
Nov 14, 2006
180
GB
Hi,
I'm trying to use a Word VBA find/replace to fill a word template table that is in an unusual format (MailMerge method dosn't work). I currently have a hard coded version working but when it runs the Excel data overwrites the formats of the table merge field.
Can anyone advise a way to do a Word VBA find for a string. Then replace characters within that string only (specifically find "<<" & mergeField & ">>" and replace "mergeField" only)?

Or maybe there is a better way to do this?

Any help or advice would be much appreciated.
Thanks,
Roy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top