View Single Post
  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Text form field help

If I knew of one I would have told you.

--

Graham Mayor - Word MVP

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


WilNeedsHelp wrote:
Is there anyway to set it where a single click rather than a double
click and fill out the field?
Thanks

Graham Mayor wrote:
Use TAB to move between fields and/or double click the field to
select the content. Single clicking will always add to the content
from the cursor position.

You can't avoid the macros if you want more control over your form.

For the first field to be selected when a new form is created, save
the following macro in the form template

Sub AutoNew()
Dim bProtected As Boolean

'Unprotect the file
If ActiveDocument.ProtectionType wdNoProtection Then
bProtected = True
ActiveDocument.Unprotect
End If
'Put the cursor at the start of the document
Selection.HomeKey Unit:=wdStory
'Select the first field
Selection.NextField.Select
'Reprotect the document.
If bProtected = True Then
ActiveDocument.Protect _
Type:=wdAllowOnlyFormFields, NoReset:=True
End If
End Sub


--

Graham Mayor - Word MVP

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


wrote:
Hello, I am trying to create a word template text form file for word
xp and curently I have everything down pact. However, in my text
fill in fields after I protect the document, whenver the user
single click the field it doesn't highlight the entire field
instead they just place the cursor in the field. When the the
cursor is in the field they are just typing text and changing the
default text instead of actually filling out the form. Is there
anyway around this without using macros or such? Thanks you.