G
Gordzilla
I'm relatively new to VBA and have inherited about 700 documents created from
a protected template.
I need to change the value of a date on all 700 documents.
I originally wrote a macro that opened each file, and did a search and
replace.
This worked...or so I thought. If you look at a document on the screen, the
new date appears, if you do a print preview or print the document it reverts
back to the original date.
Turns out the date in question is entered using a user dialog box.
If I toggle Field codes I can see the following.
{Ask startdate "Enter Start Date (yyyy-mm-dd)" \d "yyyy-mm-dd" \*
MERGEFORMAT} {REF startdate \* MERGEFORMAT}
From what I understand this is a bookmark field.
Can someone assist me with code to change the date that is stored in the
field with the new one?
I have two other fields that require similar changes too, that are in the
exact coding format.
Gordzilla
a protected template.
I need to change the value of a date on all 700 documents.
I originally wrote a macro that opened each file, and did a search and
replace.
This worked...or so I thought. If you look at a document on the screen, the
new date appears, if you do a print preview or print the document it reverts
back to the original date.
Turns out the date in question is entered using a user dialog box.
If I toggle Field codes I can see the following.
{Ask startdate "Enter Start Date (yyyy-mm-dd)" \d "yyyy-mm-dd" \*
MERGEFORMAT} {REF startdate \* MERGEFORMAT}
From what I understand this is a bookmark field.
Can someone assist me with code to change the date that is stored in the
field with the new one?
I have two other fields that require similar changes too, that are in the
exact coding format.
Gordzilla