#1   Report Post  
Posted to microsoft.public.word.docmanagement
[email protected] jedisaiyan@gmail.com is offline
external usenet poster
 
Posts: 1
Default Text form field help

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.

  #2   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

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.



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
WilNeedsHelp WilNeedsHelp is offline
external usenet poster
 
Posts: 1
Default Text form field help

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.


  #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.



  #5   Report Post  
Posted to microsoft.public.word.docmanagement
jwpjr765 jwpjr765 is offline
external usenet poster
 
Posts: 1
Default Text form field help

You could try adding the following two lines in a new function:
Selection.PreviousField.Select
Selection.NextField.Select

You would still have to use the Unprotect & Protect program lines.

In the properties window select this new function name in the Run macro on
Entry drop down field.


"Graham Mayor" wrote:

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.






  #6   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 you insert the cursor into the field the on entry macro doesn't run. It
only runs when you tab into a field

--

Graham Mayor - Word MVP

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


jwpjr765 wrote:
You could try adding the following two lines in a new function:
Selection.PreviousField.Select
Selection.NextField.Select

You would still have to use the Unprotect & Protect program lines.

In the properties window select this new function name in the Run
macro on Entry drop down field.


"Graham Mayor" wrote:

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.



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
manipulating/cutting/pasting text out of a text box [email protected] Microsoft Word Help 10 July 9th 06 10:54 PM
change text colour and size in text form field Dana Microsoft Word Help 0 April 7th 06 10:29 PM
Can I make a form field autopupulate with text from another field HCFRAdmin Tables 1 January 11th 06 08:30 PM
Autofill of Text Form Field based on another Text Form Field Brett Kinross Microsoft Word Help 3 November 24th 05 04:49 AM
Text form field inside WORD table cell, odd selection behavior pwrichcreek Microsoft Word Help 1 October 11th 05 03:57 PM


All times are GMT +1. The time now is 10:22 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"