Hi NISMOJim,
Your code is trying to populate three text formfields in the document, whose internal bookmark names are 'name', 'date' and 'details', respectively. You need to check that the document does indeed have three such text formfields (the ones that display {FORMTEXT} when you toggle the field code dispaly) with those names. To check this, select a given text formfield, right-click on it and choose 'properties'. If the formfield has no bookmark name, or the wrong one, correct it (I note that you refer to one named 'EDate', but that's not the name your code is looking for).
Given that you're working with office 2007, you might want to confirm whether:
Const DOC_NAME As String = "Injury Form.doc"
should be:
Const DOC_NAME As String = "Injury Form.docx"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|