From a webform, i wish to get some data and use it to populate a word document that i have with merged fields (which were set up through mail merge feature).
So far i have been able to create a word object and open the document. Now i am stuck at the part where i import specific data on the webform to particular merged fields in the word doc. Data in the webform will be held in variables so i need to tell the application to match a particular variable to a particular merged field in the word doc, but how do i do this??
This is how far i have got:
VB Code:
'create an instance of the application Dim wordApp As Word.Application 'create new document Dim wordDoc As Word.Document wordApp = CreateObject("Word.Application") wordDoc = wordApp.Documents.Open(FileName:="c:\labeltemplate.doc")
please help




Reply With Quote