Macro for ASK and REF fields

G

Guest

I need to create a template with prompts for the user to type in information. I thought I could use the ASK field, and then the REF field to insert it in the text.

I then tried to record a Macro "AutoRun" to prompt the user to enter the information when the file is opened. However, during the recording when I press F9 for the fields, I have to enter information into the field pop-up window so I can stop the macro recording. The result is the macro automatically inserts the sample name and doesn't prompt the user when the file is opened.

How can I create this form for users to enter information and it be inserted in the appropriate places?
 
G

Graham Mayor

You need a template with the ASK and REF fields placed as required and saved
in it an AutoNew macro to update the fields.
When you create a new document the macro forces an update of the ASK field
and the REF fields

See http://www.gmayor.com/installing_macro.htm.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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