Load Fields on a Form with Button Click?

T

tmk

I have fields in a word document template that I would like to allow the user
to fill in. Then with a button click, I would like to copy the data from
those fields that the user filled in to other areas (fields) on the same form
to be used as prompts for additional input. I can read the user inputs from
the initial bookmarked fields with the

dim x as string
ActiveDocument.Bookmarks("fred").select
x=Selection.text

I cannot see how to load another field with the x text

Something like :
ActiveDocument.Bookmarks("fred1").select
Selection.text=x

This removes the fred1 bookmark and the associated field.
 
T

tmk

Anne,

This solved my problem. Now I have one more question:

I have a button that initializes the form using

ActiveDocument.ResetFormFields

This resets my form to the initial values, but the cross referenced fields
are not reset. Is there a way to force the "Calculate on exit" that would
reset the cross referenced fields?

Thanks for your help!!
 
J

Jay Freedman

I haven't tried this to check it, but following the ResetFormFields with

ActiveDocument.Fields.Update

should do it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top