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 / January 2004

Tip: Looking for answers? Try searching our database.

I can't get ASK field to work!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roger Ottaway - 06 Jan 2004 15:08 GMT
I am using word 2002.sp2.  We have a number of word.dot templates which use
fill-in fields to complete the letters. The templates are only used once, so
we don't do an actual mail merge with a database of records or names and
addresses. Will the ASK field work with this type of letter, or does it rely
on an actual mail merge to work. I have inserted the ASK field in my
templates, with a REF field in a second set of Ctrl+F9 control brackets to
print out the text, but it just won't work! What am I doing wrong ?

Thanks .. Roger
Greg Maxey - 06 Jan 2004 15:29 GMT
Roger,

ASK Fields are not dependent on a Mail Merge.  I don't
know exactly what you are doing to say what you are doing
wrong.

Here is a simple test.  Type { ASK Test "Do you see
prompt?" }  in a new blank document.  Go down a few lines
and type { REF Test }.

Right click the ASK field and select update field.

Do you see a prompt?  You should.  Type yes and click OK.  
The REF field should update and display yes.
>-----Original Message-----
>I am using word 2002.sp2.  We have a number of word.dot templates which use
[quoted text clipped - 8 lines]
>
>.
Roger Ottaway - 06 Jan 2004 15:53 GMT
Greg

thanks for your help so far. With my word.dot templates with the fill-in
fields, we open a new copy (ie not the .dot file but a .doc copy) and the
document automatically prompts to fill in the fields. I have the bookmarks
and fields turned off, so at the end of filling in all of the fill-in
fields, the document updates automatically and bingo .. it is all done ready
to print.

I have done what you suggest and firstly, there is no prompt to "fill in"
the ASK field on opening a .doc copy of the template. But if I highlight the
ASK field I can get the menu option to update. That I can do, and click on
ok, but it doesn't update automatically. If I save the document, and then
reopen it, the REF test field has been updated. Should the ASK field, in
conjunction with the REF field, work the same as a fill-in field ?

thanks

Roger

> Roger,
>
[quoted text clipped - 29 lines]
> >
> >.
Greg Maxey - 06 Jan 2004 16:59 GMT
Roger,

I think I see your issue now.  It appears that Fillin
fields in a template are prompted for udpate when a new
document is created based on that template but ASK fields
are not.

Some one else may be along with a better answer, but all I
can think to do is to put the following AotoNew macro in
your template.  It will cause ASK field prompts to appear
when a new document is created.

Sub AutoNew()
 Dim oStory As Range
 For Each oStory In ActiveDocument.StoryRanges
   oStory.Fields.Update
   If oStory.StoryType < wdMainTextStory Then
     While Not (oStory.NextStoryRange Is Nothing)
       Set oStory = oStory.NextStoryRange
       oStory.Fields.Update
     Wend
   End If
 Next oStory
 Set oStory = Nothing
End Subs
>-----Original Message-----
>Greg
[quoted text clipped - 52 lines]
>
>.
Graham Mayor - 06 Jan 2004 17:47 GMT
You need an autonew macro in the *document template* to force an update on
the ask field.

Sub AutoNew()
Dim oStory As Range
For Each oStory In ActiveDocument.StoryRanges
   oStory.Fields.Update
   If oStory.StoryType <> wdMainTextStory Then
     While Not (oStory.NextStoryRange Is Nothing)
       Set oStory = oStory.NextStoryRange
       oStory.Fields.Update
     Wend
   End If
Next oStory
Set oStory = Nothing
End Sub

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

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
    Graham Mayor -  Word MVP
      E-mail gmayor@mvps.org
     Web site www.gmayor.com
 Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>

> Roger,
>
[quoted text clipped - 75 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.