Re: Makeing text disappear in a form when I begin typing

Tech-Archive recommends: Fix windows errors by optimizing your registry



Use default text in the form field. When the field is selected anything
typed will replace the text. If you want to clear that default text (and
frankly I wouldn't bother) you would need a macro run on entry to each field
containing the line

ActiveDocument.FormFields("Text1").Result = ""

where Text1 is the bookmark name of the field.

If you need text in the field to inform the user what to enter use the field
help which puts help text in the status bar and set an autonew macro in the
form template to draw attention to it.

Sub AutoNew()
Application.DisplayStatusBar = True
MsgBox "Refer to status line at bottom of screen for field entry details" _
, vbInformation, "Help"
End Sub

You may then find http://www.gmayor.com/formfieldmacros.htm useful.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Ben wrote:
I have a protected form that I want to set up so the text will
disappear and leave a cursor when someone clicks on it to enter text.
Is this possible? If so how do I do it?


.



Relevant Pages

  • Re: Form Fields
    ... Word MVP web site http://word.mvps.org ... another form field) that it becomes complex. ... {REF RepCode} instead of just RepCode). ...
    (microsoft.public.word.docmanagement)
  • Re: macro to enter data and print doc
    ... the MVP web site (link in sig. ... Word MVP web site http://word.mvps.org ... > well but I am having problems getting the "form field" to work ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Cross reference book marks are changing format, why is this ha
    ... Graham Mayor - Word MVP ... Word MVP web site http://word.mvps.org ... Ex) Mr. Mike Jones PHD is the form field text. ...
    (microsoft.public.word.docmanagement)
  • Re: Repeating Macro
    ... Graham Mayor - Word MVP ... Word MVP web site http://word.mvps.org ... have a form field and will only take note of the first form field in ...
    (microsoft.public.word.vba.general)
  • Re: Calculation form field wont update
    ... Word MVP web site http://word.mvps.org ... Calculate on exit will force an update on such a field (unless it is ... I've got a calculation form field in Word that uses the formula ...
    (microsoft.public.word.docmanagement)