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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail Merge and word endings

Status
Not open for further replies.

xenonn

Technical User
Oct 5, 2006
1
PL
Hello!

I typed a mail merge document, and I wanted certain words to appear in the document according to data fetched in a field. I wrote a procedure which works fine in immediate window in vba editor but I have no idea how to fire it in the document. The Excel approach to write a custom function and then put it in a spreadsheet does not seem to work in Word (I haven't found the way to put a custom function in a document). I have not found the mail merge event that could trigger it either.

Any advice or help would me much appreciated.

Cheers !

xenonn
 
I haven't found the way to put a custom function in a document
I am not sure what you mean. You could have a macro button in the document. You could have an icon on a toolbar. You could have a menu item. You could have a keyboard shortcut. All of these can fire a procedure.

Gerry
My paintings and sculpture
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top