Jay
Tue Sep 20 11:14:47 CDT 2005
I haven't tried this to check it, but following the ResetFormFields with
ActiveDocument.Fields.Update
should do it.
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ:
http://word.mvps.org
tmk wrote:
> 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!!
>
>
> "Anne Troy" wrote:
>
>> You don't need a button click. You can just use cross-references to
>> the existing bookmarks, though you could use the button click to
>> update the cross-refs. See:
>>
http://www.officearticles.com/word/create_a_reference_to_a_bookmark_in_microsoft_word.htm
>> The bookmark doesn't HAVE to be a form field, but I understand it's
>> much easier this way. :)
>> ************
>> Anne Troy
>> www.OfficeArticles.com
>>
>> "tmk" <tmk@discussions.microsoft.com> wrote in message
>> news:1B3FC81D-5E06-40F8-8293-B9A49281A250@microsoft.com...
>>> 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.