D
Doug
I have a template containing merge fields on the MS Word
Document. I am trying to get the value of the specific
field. I can get a count of the merge fields, I can
actually get a value from a field if I use a specific
element number. However, I need to use the field name.
THIS WORKS:
intTempCount = ThisDocument.Fields.Count
THIS WORKS:
ThisDocument.Fields.Item(1).Result
If I put a specific field name in the statement, I get an
error. Run-time error 13 Type Mismatch
THIS DOESN'T WORK:
ThisDocument.Fields.Item("FaxNumber").Result
I REALLY need to get the value for a specific field. Any
help would be great. Thanks!
Document. I am trying to get the value of the specific
field. I can get a count of the merge fields, I can
actually get a value from a field if I use a specific
element number. However, I need to use the field name.
THIS WORKS:
intTempCount = ThisDocument.Fields.Count
THIS WORKS:
ThisDocument.Fields.Item(1).Result
If I put a specific field name in the statement, I get an
error. Run-time error 13 Type Mismatch
THIS DOESN'T WORK:
ThisDocument.Fields.Item("FaxNumber").Result
I REALLY need to get the value for a specific field. Any
help would be great. Thanks!