View Single Post
 
Old 06-16-2011, 05:32 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote