Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Ed from AZ Ed from AZ is offline
external usenet poster
 
Posts: 91
Default Help with ASK field, please?

I want to be prompted for a value to be inserted into a bookmark every
time I open a certain document. I inserted a bookmark using the
Insert Bookmark menu. Then I used Insert Field to insert an ASK
field. The field code looks like:
{ ASK Qty "How many are left?"}

The input box fires and I input my value, but the bookmark never
populates. What might be wrong?

Ed

  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Help with ASK field, please?

In Word, you can set the value of a bookmark in a number of ways, including:
a. you insert some text (and perhaps other stuff), select it, then use
Insert|Bookmark to bookmark that piece of text
b. you use a { SET mybookmark "myvalue" } or { ASK mybookmark "myvalue?"}
field to assign a value to a bookmark

To display the value of a bookmark, however you created it, you can use a
{ REF mybookmark } field.

However, what /doesn't happen in Word is that if you bookmark a piece of
text, then use a SET or ASK field to assign a new value to the bookmark, the
text that you previously bookmarked changes to reflect the new value (in
fact, when Word executes a SET or ASK, the /location/ of the bookmark
changes as well, to be a point location at the point where the SET or ASK
field was entered.

This is probably more than you want to know, but...)

Another thing to be aware of is that a REF field will display the value of
the bookmark at the tim the REF field is executed. So if you have

a: a piece of text that says valuea and is bookmarked "bma"
b: { REF bma }
c:
d: { REF bma }

and select the document and press F9 to re-execute all the fields, you would
see

a: valuea
b: valuea
c:
d: valuea

If you then change

c:

to be

c: { SET bma valueb }

then select the document and press F9 to re-execute all the field codes, you
should see
a: valuea
b: valuea
c:
d: valueb

because until the SET is exectued, the value of { REF bma } is still valuea

then select the document again and press F9 and you should see
a: valuea
b: valueb
c:
d: valueb

Peter Jamieson



"Ed from AZ" wrote in message
ups.com...
I want to be prompted for a value to be inserted into a bookmark every
time I open a certain document. I inserted a bookmark using the
Insert Bookmark menu. Then I used Insert Field to insert an ASK
field. The field code looks like:
{ ASK Qty "How many are left?"}

The input box fires and I input my value, but the bookmark never
populates. What might be wrong?

Ed


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Help with ASK field, please?

BTW, if you're using Word 2007, you probably ought to look at using COntent
Controls for this kind of stuff.

Peter Jamieson

"Peter Jamieson" wrote in message
...
In Word, you can set the value of a bookmark in a number of ways,
including:
a. you insert some text (and perhaps other stuff), select it, then use
Insert|Bookmark to bookmark that piece of text
b. you use a { SET mybookmark "myvalue" } or { ASK mybookmark "myvalue?"}
field to assign a value to a bookmark

To display the value of a bookmark, however you created it, you can use a
{ REF mybookmark } field.

However, what /doesn't happen in Word is that if you bookmark a piece of
text, then use a SET or ASK field to assign a new value to the bookmark,
the text that you previously bookmarked changes to reflect the new value
(in fact, when Word executes a SET or ASK, the /location/ of the bookmark
changes as well, to be a point location at the point where the SET or ASK
field was entered.

This is probably more than you want to know, but...)

Another thing to be aware of is that a REF field will display the value of
the bookmark at the tim the REF field is executed. So if you have

a: a piece of text that says valuea and is bookmarked "bma"
b: { REF bma }
c:
d: { REF bma }

and select the document and press F9 to re-execute all the fields, you
would see

a: valuea
b: valuea
c:
d: valuea

If you then change

c:

to be

c: { SET bma valueb }

then select the document and press F9 to re-execute all the field codes,
you should see
a: valuea
b: valuea
c:
d: valueb

because until the SET is exectued, the value of { REF bma } is still
valuea

then select the document again and press F9 and you should see
a: valuea
b: valueb
c:
d: valueb

Peter Jamieson



"Ed from AZ" wrote in message
ups.com...
I want to be prompted for a value to be inserted into a bookmark every
time I open a certain document. I inserted a bookmark using the
Insert Bookmark menu. Then I used Insert Field to insert an ASK
field. The field code looks like:
{ ASK Qty "How many are left?"}

The input box fires and I input my value, but the bookmark never
populates. What might be wrong?

Ed



  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Ed from AZ Ed from AZ is offline
external usenet poster
 
Posts: 91
Default Help with ASK field, please?

Thank you, Peter, for lots of info.

This is probably more than you want to know, but...)

Still very good to know.

BTW, if you're using Word 2007

Oops - no, I'm using Word 2003.

Is there a way to accomplish my original task using fields?
I want to be prompted for a value to be inserted into a bookmark every
time I open a certain document.

Or would I have to resort to a macro?

Ed

  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Help with ASK field, please?

Is there a way to accomplish my original task using fields?
I want to be prompted for a value to be inserted into a bookmark every
time I open a certain document.

Or would I have to resort to a macro?


If you put your ASK right at the top of the document and insert your text
using a REF, then execute the fields once and save the template, I think you
should be OK. In other words, don't try to set the initial value of the
bookmark by typing the text then using Insert|Bookmark - just use a REF
field to insert the value.

Or would I have to resort to a macro?


I hope not ...

Peter Jamieson



"Ed from AZ" wrote in message
ups.com...
Thank you, Peter, for lots of info.

This is probably more than you want to know, but...)

Still very good to know.

BTW, if you're using Word 2007

Oops - no, I'm using Word 2003.

Is there a way to accomplish my original task using fields?
I want to be prompted for a value to be inserted into a bookmark every
time I open a certain document.

Or would I have to resort to a macro?

Ed




  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Ed from AZ Ed from AZ is offline
external usenet poster
 
Posts: 91
Default Help with ASK field, please?

Thanks for staying with me, Peter. I appreciate all your help.

Ed

On Aug 17, 11:39 am, "Peter Jamieson"
wrote:
Is there a way to accomplish my original task using fields?
I want to be prompted for a value to be inserted into a bookmark every
time I open a certain document.

Or would I have to resort to a macro?


If you put your ASK right at the top of the document and insert your text
using a REF, then execute the fields once and save the template, I think you
should be OK. In other words, don't try to set the initial value of the
bookmark by typing the text then using Insert|Bookmark - just use a REF
field to insert the value.

Or would I have to resort to a macro?


I hope not ...

Peter Jamieson

"Ed from AZ" wrote in oglegroups.com...



Thank you, Peter, for lots of info.


This is probably more than you want to know, but...)

Still very good to know.


BTW, if you're using Word 2007

Oops - no, I'm using Word 2003.


Is there a way to accomplish my original task using fields?
I want to be prompted for a value to be inserted into a bookmark every
time I open a certain document.

Or would I have to resort to a macro?


Ed- Hide quoted text -


- Show quoted text -



  #7   Report Post  
Posted to microsoft.public.word.docmanagement
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default Help with ASK field, please?

Hi Ed,

If you only want the result of the prompt to appear in one place, you could use a FILLIN filed at that location, instead of an
ASK/REF combination. No bookmark is required in this case.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Ed from AZ" wrote in message ups.com...
I want to be prompted for a value to be inserted into a bookmark every
time I open a certain document. I inserted a bookmark using the
Insert Bookmark menu. Then I used Insert Field to insert an ASK
field. The field code looks like:
{ ASK Qty "How many are left?"}

The input box fires and I input my value, but the bookmark never
populates. What might be wrong?

Ed


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form field entry extends field beyond page margin TC2004 Microsoft Word Help 2 August 3rd 07 02:46 PM
File Name Field With Text Form Field When Performing a Save As... Bilbert Microsoft Word Help 1 April 11th 07 08:50 PM
Copy portion of text form field , the field is in a table cell otilia Tables 6 January 27th 06 11:52 AM
Help on Mailmerge field (field length) - field getting truncated Blasting Cap Mailmerge 0 September 16th 05 06:57 AM
Mail merge field different in datasource & insert a field menu Silvs Mailmerge 1 April 22nd 05 06:18 AM


All times are GMT +1. The time now is 08:41 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"