Thread: [Solved] ASK and REF field problem
View Single Post
 
Old 05-26-2011, 12:06 AM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,369
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi ilkks,

If you check the formfield's 'calculate on exit' property, you don't need a macro to update the cross-references.

Conversely, If you use an ASK field coded as:
{IF{REF BkMk}= {DOCPROPERTY Author} {ASK BkMk "Write your name here" \d {DOCPROPERTY Author}}}
or:
{ASK BkMk "Write your name here" \d {DOCPROPERTY Author}}
and an AutoOpen macro whose code is:
Code:
Sub AutoOpen
ActiveDocument.Fields.Update
End Sub
you don't need the MACROBUTTON field.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote