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:
  1. 'create an instance of the application  
  2.         Dim wordApp As Word.Application
  3.  
  4.         'create new document
  5.         Dim wordDoc As Word.Document
  6.  
  7.         wordApp = CreateObject("Word.Application")
  8.  
  9.         wordDoc = wordApp.Documents.Open(FileName:="c:\labeltemplate.doc")

please help