Problem Printing Customized Outlook Form using Word Template
Hi Daniel
I'm assuming you're answering my message (but I may be wrong):
For counter = 1 to intBkList
strField = Trim(objWord.ActiveDocument.Bookmarks(counter))
....
objWord.ActiveDocument.Bookmarks(strField).Range.T ext = Cstr(strField2)
....
If you're getting the Word error message it must be to do with one of the
lines I've reproduced above. It could mean Word isn't finding the particular
bookmark so I guess your "counter" variable has reached a number for which
there's no equivalent index for a bookmark in the active document. Have you
set intBkList too high?
"Daniel Reyes" wrote:
I tried using that code but I get the following error - "MS Word: The
requested member of the collection does not exist.".
Daniel
-=-=-=-=-=-=-=
"ajkim001" wrote:
I created an OL form and used the Sub cmdPrint_Click code to print the form
data. I got the oDoc.FormFields ("FieldName").Result = item.userproperties
("FieldName") part working. However, I'm having trouble with the checkboxes
and radio buttons. I've tried using oDoc.FormFields("FieldName").CheckBox =
item.userproperties("FieldName") but it doesn't work. Maybe I'm missing
something or is there a different code that I need to use to transfer the
data to the Word template?
I hope someone has the answer to this. I've searched online and in Word and
Outlook books to no avail. Thank you!
|