E
EllenM
Hello,
I have embedded 4 numeric fields into a word template. I am trying to write
a macro that adds up the fields and displays the sum in a message box. Being
a novice at VB, I need to know how to determine the value of a field.
Unfortunately, I can not find the name of the 4 fields I inserted into the
template because Word does not seem to prompt you to name the field, only
insert a field. It is not immediately obvious to me how to find this
information in Word. If I knew this, I could probably find the field values
myself. I did find some code (below) that may help but I do not know how I
would use it. Any suggestions?
ActiveDocument.FormFields(i).Result = strvalue
Thanks, Ellen ;-D
I have embedded 4 numeric fields into a word template. I am trying to write
a macro that adds up the fields and displays the sum in a message box. Being
a novice at VB, I need to know how to determine the value of a field.
Unfortunately, I can not find the name of the 4 fields I inserted into the
template because Word does not seem to prompt you to name the field, only
insert a field. It is not immediately obvious to me how to find this
information in Word. If I knew this, I could probably find the field values
myself. I did find some code (below) that may help but I do not know how I
would use it. Any suggestions?
ActiveDocument.FormFields(i).Result = strvalue
Thanks, Ellen ;-D