How can i insert a hidden field in Word?

M

mca

In word i use CTRL+F9 and copy the text between the curly brackets. Ho
can i do this with VBA. The text between the curly brackets is asked a
the user via a textbox.

Anyone
 
M

macropod

Hi mca,

If you mean a hidden bookmark, the answer is to prefix its name with an
underscore (eg the field {SET _BkMrk "This text is attached to a hidden
bookmark"} creates a hidden bookmark, but the field's contents can still be
accessed via a REF field {REF _BkMrk})

Cheers
 
C

Charles Kenyon

Are you perhaps asking about the { ASK } field? It prompts users and allows
an answer. Neither the prompt nor the answer appear directly in the document
at the field location. The answer is in a hidden bookmark that is used with
a REF field elsewhere. I assume you could do the same with a SET field which
would not have an input box.
--

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.
 

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