W
Wembly
Hi,
I have set up bookmarks and other merged fields in a word
DOT file and want to use code to perform some calculations
to populate certain bookmarked fields.
I was wondering if it was possible to reference a bookmark
from a Word doc, and if so, how it is written?
E.g. The GrossAmount is the bookmark in Word. And the
Datafields "Dollar1/2/3" are referencing "Documents
("filename.DOT").mailmerge.datasource"
GrossAmount = .DataFields("Dollar1").Value _
+ .DataFields("Dollar2").Value _
+ .DataFields("Dollar3").Value
If there is a way to reference bookmarks, which event do I
put this in so that Word knows when to sum it after the
fields have been merged (because prior to merge, there is
no data there for it to sum).
Thanks
Wembly.
I have set up bookmarks and other merged fields in a word
DOT file and want to use code to perform some calculations
to populate certain bookmarked fields.
I was wondering if it was possible to reference a bookmark
from a Word doc, and if so, how it is written?
E.g. The GrossAmount is the bookmark in Word. And the
Datafields "Dollar1/2/3" are referencing "Documents
("filename.DOT").mailmerge.datasource"
GrossAmount = .DataFields("Dollar1").Value _
+ .DataFields("Dollar2").Value _
+ .DataFields("Dollar3").Value
If there is a way to reference bookmarks, which event do I
put this in so that Word knows when to sum it after the
fields have been merged (because prior to merge, there is
no data there for it to sum).
Thanks
Wembly.