Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / April 2004

Tip: Looking for answers? Try searching our database.

ASK Field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Judy - 25 Mar 2004 23:28 GMT
I'm creating a document that will prompt the user for
information that is the same through out the document.  
After the user fills out the initial prompt, I have cross
references through out the document to populate it with
that information.  I'm using Word XP, and so far I have
been unable to get a prompt using the ASK field.  I've
followed the directions in the help menu but the moment
the file is opened no prompt appears.  I've saved the
document as a template but nothing happens.  I've added
the autonew macro and still no prompt when the document is
opened through file.  

I'm not sure what the difference is in XP, this seemed to
work fine in 2000 without any problems.  Am I missing a
step?  This is the ASK field that I'm using {ASK  
Name "Enter Your Name"} followed by the cross reference
Name.

Any help would be greatly appreciated
Charles Kenyon - 26 Mar 2004 00:26 GMT
Unlike Fill-In fields, ASK fields never pop up automatically in general use.
(I think they might during a merge but haven't tried it.)

If you want it to pop up whenever a new document is created based on your
template you need an AutoNew macro containing the following code or calling
the following macro:

Sub TriggerAskFields()
'   Macro written by Charles Kyle Kenyon on 25 March 2004
'   Updates ASK fields and any Ref Fields in body of document
'
'   Update Ask Fields
   Dim oField As Field
   For Each oField In ActiveDocument.Fields
       If oField.Type = wdFieldAsk Then
           oField.Update
       End If
   Next oField
'   Update Ref Fields in body of Document
   For Each oField In ActiveDocument.Fields
       If oField.Type = wdFieldRef Then
           oField.Update
       End If
   Next oField
'   Update Ref Fields in headers/footers
   ActiveDocument.PrintPreview
   ActiveDocument.ClosePrintPreview
End Sub

Sub AutoNew()
   TriggerAskFields
End Sub

To trigger it whenever the document is opened add the following:

Sub AutoOpen
   TriggerAskFields
End Sub

I would advise against the AutoOpen macro. People will get tired of it very
quickly. The macros go in your template. The printpreview statements are
only needed if you have REF fields in your headers or footers. (You should
not have ASK fields in headers or footers.)

Hope this helps.
Signature


Charles Kenyon

See the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> I'm creating a document that will prompt the user for
> information that is the same through out the document.
[quoted text clipped - 15 lines]
>
> Any help would be greatly appreciated
- 26 Mar 2004 16:26 GMT
I tried this and still no prompts when i open the
document, i'm not sure what the problem is with XP. i'm
not sure what to do, the user would like to see prompts to
enter the information.

>-----Original Message-----
>Unlike Fill-In fields, ASK fields never pop up automatically in general use.
[quoted text clipped - 63 lines]
>
>.
Charles Kenyon - 26 Mar 2004 20:04 GMT
You tried the AutoOpen macro?

Does the user possibly have macro security set to high and not allowing
macros in templates to run?
Signature


Charles Kenyon

See the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> I tried this and still no prompts when i open the
> document, i'm not sure what the problem is with XP. i'm
[quoted text clipped - 89 lines]
> >
> >.
rlampky - 04 Apr 2004 23:42 GMT
Had the same problem until I had the Autonew check and unprotect the
document and then protect it on close.

> You tried the AutoOpen macro?
>
[quoted text clipped - 93 lines]
> > >
> > >.
Charles Kenyon - 05 Apr 2004 04:35 GMT
Ask fields seldom (if ever) belong in protected documents. They are almost
fundamentally incompatible. They're not built to work together.

In a document protected for forms you can simply insert a text formfield and
get the information you need there. For more about online forms, follow the
links at <URL: http://word.mvps.org/FAQs/Customization/FillinTheBlanks.htm>
especially Dian Chapman's series of articles.

Hope this helps,
Signature


Charles Kenyon

See the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> Had the same problem until I had the Autonew check and unprotect the
> document and then protect it on close.
[quoted text clipped - 96 lines]
> > > >
> > > >.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.