H
Henry
I'm automating a word doc. that has one paragraph which may be repeated
several times with only one word difference.
I've put a form field where the word should go and copied and pasted the
paragraph the required number of times (from a numerical user input).
E.g. If the user inputs 3, the paragraph is copied once and pasted twice.
The paragraph pastes ok (with the form field in place) the requisite number
of times, but there is/are no bookmark(s) for the(se) pasted field(s).
I tried a manual copy and paste of a form field and it appears that this is
normal behavior for word (no bookmark is pasted).
My problem is, how to refer to the(se) pasted formfield(s) from code.
It shouldn't make a difference, but FYI, I'm writing the macro in Excel VBA.
This is how I'm getting data into other form fields.
appWD.ActiveDocument.FormFields("Surname").Select 'Surname
appWD.ActiveDocument.FormFields("Surname").Result =
InputForm.Surnamebox.Text
Any suggestion would be appreciated.
Henry
several times with only one word difference.
I've put a form field where the word should go and copied and pasted the
paragraph the required number of times (from a numerical user input).
E.g. If the user inputs 3, the paragraph is copied once and pasted twice.
The paragraph pastes ok (with the form field in place) the requisite number
of times, but there is/are no bookmark(s) for the(se) pasted field(s).
I tried a manual copy and paste of a form field and it appears that this is
normal behavior for word (no bookmark is pasted).
My problem is, how to refer to the(se) pasted formfield(s) from code.
It shouldn't make a difference, but FYI, I'm writing the macro in Excel VBA.
This is how I'm getting data into other form fields.
appWD.ActiveDocument.FormFields("Surname").Select 'Surname
appWD.ActiveDocument.FormFields("Surname").Result =
InputForm.Surnamebox.Text
Any suggestion would be appreciated.
Henry