format form fields

G

Guest

I have WORD forms created with Text Fields. After the document is protected,
if I click into a field, it does not highlight the whole field to enter new
text, but places the typing wherever I clicked into the field (as in inserts
insteads of overwrites). If I tab to each field, then the field highlights
and any typing replaces the instructions there. Is there a way to format
text fields so that whether you click or tab into a field, the whole field is
highlighted and your typing replaces the instruction text already there?
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?TXlzdGljIGxhZHk=?=,
I have WORD forms created with Text Fields. After the document is protected,
if I click into a field, it does not highlight the whole field to enter new
text, but places the typing wherever I clicked into the field (as in inserts
insteads of overwrites). If I tab to each field, then the field highlights
and any typing replaces the instructions there. Is there a way to format
text fields so that whether you click or tab into a field, the whole field is
highlighted and your typing replaces the instruction text already there?
You'd need to use a macro, assigned to the "On Enter" action, to select the
entire field when you enter it. However, whether this will work or not depends
on the version of Word you have? In some versions (97, for instance), clicking
into a form field won't trigger macros.

Sub SelectEntireFormField()
Dim fldName As String

fldName = Selection.Bookmarks(1).Name
ActiveDocument.FormFields(fldName).Select
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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

Similar Threads


Top