How to autoreplace text in a Word template?

J

john_moss

An example of what I’m trying to ask:
When I go to a page that has an input form, there may be a prompt for
information in the input box. When I place the mouse there with a
left-click, the prompt disappears and I can enter as prompted (name,
address, whatever). How do I code for this 'prompt'?

My specific need:
Outside of 'forms', how does a Word template present the same type of
'prompt' (e.g., for an address, ‘123 Main Street’) such that when I
click on that location on the Word document, the prompt (‘123 Main
Street’) disappears and my entry, as I begin typing, is formatted in
the same style as the prompt. How does one code a Word template to
achieve this effect?

This question pertains strictly to MS Word, and I am using Word 2003.
Thank you for any help and suggestions I might use in creating my own
template for personal use.
 
D

Doug Robbins - Word MVP

See the article "Using MacroButton fields” at:
http://www.word.mvps.org/FAQs/TblsFldsFms/UsingMacroButton.htm

or better,

See the article "How to create a Userform" at:

http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm

and the following pages of fellow MVP Greg Maxey's website :

http://gregmaxey.mvps.org/Create_and_employ_a_UserForm.htm

http://gregmaxey.mvps.org/Populate_UserForm_ListBox.htm


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.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