#1   Report Post  
Posted to microsoft.public.word.docmanagement
nip nip is offline
external usenet poster
 
Posts: 19
Default text control question

Office Word 2007
Is there a way to have the "click here to enter text" not appear when
printed if the field is blank
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
grammatim[_2_] grammatim[_2_] is offline
external usenet poster
 
Posts: 2,751
Default text control question

I don't know what your last seven words mean, but you can turn off
"Click and Type" with Office Button Word Options Advanced
Editing Options, about halfway down, uncheck "Enable click and type."

On Apr 25, 7:20*pm, nip wrote:
Office Word 2007
Is there a way to have the "click here to enter text" not appear when
printed if the field is blank


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default text control question

The OP is referring to MacroButton NoMacro fields, which often use "Click
here and type name" or the like as the prompt text (see
http://word.mvps.org/FAQs/TblsFldsFm...croButton.htm). AFAIK, there is
no way to avoid having the prompt appear if the field hasn't been replaced.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"grammatim" wrote in message
...
I don't know what your last seven words mean, but you can turn off
"Click and Type" with Office Button Word Options Advanced
Editing Options, about halfway down, uncheck "Enable click and type."

On Apr 25, 7:20 pm, nip wrote:
Office Word 2007
Is there a way to have the "click here to enter text" not appear when
printed if the field is blank



  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default text control question

I don't think they're macrobutton fields. In Word 2007, the new content controls
have "placeholder text" that appears when nothing has been entered (and again if
you delete the entry). The "Click here to enter text" phrase is the default
placeholder text for plain-text and rich-text content controls.

The placeholder text can be manipulated only in macro code. To hide the
placeholder text when printing via Office button Print, Ctrl+P, or the
immediate-print button that you can add to the Quick Access Toolbar, put these
two macros into Normal.dotm (see http://www.gmayor.com/installing_macro.htm if
needed):

Sub FilePrint()
Dim cc As ContentControl
Dim cnt As Long, i As Long
For Each cc In ActiveDocument.ContentControls
With cc
If .ShowingPlaceholderText Then
.SetPlaceholderText Text:=" "
cnt = cnt + 1
End If
End With
Next

Dialogs(wdDialogFilePrint).Show

For i = 1 To cnt
ActiveDocument.Undo
Next
End Sub

Sub FilePrintDefault()
Dim cc As ContentControl
Dim cnt As Long, i As Long
For Each cc In ActiveDocument.ContentControls
With cc
If .ShowingPlaceholderText Then
.SetPlaceholderText Text:=" "
cnt = cnt + 1
End If
End With
Next

ActiveDocument.PrintOut Background:=False

For i = 1 To cnt
ActiveDocument.Undo
Next
End Sub


--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all
may benefit.

On Sat, 25 Apr 2009 23:30:37 -0500, "Suzanne S. Barnhill"
wrote:

The OP is referring to MacroButton NoMacro fields, which often use "Click
here and type name" or the like as the prompt text (see
http://word.mvps.org/FAQs/TblsFldsFm...croButton.htm). AFAIK, there is
no way to avoid having the prompt appear if the field hasn't been replaced.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"grammatim" wrote in message
...
I don't know what your last seven words mean, but you can turn off
"Click and Type" with Office Button Word Options Advanced
Editing Options, about halfway down, uncheck "Enable click and type."

On Apr 25, 7:20 pm, nip wrote:
Office Word 2007
Is there a way to have the "click here to enter text" not appear when
printed if the field is blank


  #5   Report Post  
Posted to microsoft.public.word.docmanagement
PamC via OfficeKB.com PamC via OfficeKB.com is offline
external usenet poster
 
Posts: 582
Default text control question

Nip:

You may be able to record a macro that adds the hidden attribute to the
Placeholder text character style. But I'm not sure that's what you want. If
you want the spaces to remain but the words gone, change the font color to
white.

Pam

nip wrote:
Office Word 2007
Is there a way to have the "click here to enter text" not appear when
printed if the field is blank


--
Message posted via http://www.officekb.com



  #6   Report Post  
Posted to microsoft.public.word.docmanagement
nip nip is offline
external usenet poster
 
Posts: 19
Default text control question

On Apr 26, 9:08*am, Jay Freedman wrote:
I don't think they're macrobutton fields. In Word 2007, the new content controls
have "placeholder text" that appears when nothing has been entered (and again if
you delete the entry). The "Click here to enter text" phrase is the default
placeholder text for plain-text and rich-text content controls.

The placeholder text can be manipulated only in macro code. To hide the
placeholder text when printing via Office button Print, Ctrl+P, or the
immediate-print button that you can add to the Quick Access Toolbar, put these
two macros into Normal.dotm (seehttp://www.gmayor.com/installing_macro.htmif
needed):

Sub FilePrint()
* * Dim cc As ContentControl
* * Dim cnt As Long, i As Long
* * For Each cc In ActiveDocument.ContentControls
* * * * With cc
* * * * * * If .ShowingPlaceholderText Then
* * * * * * * * .SetPlaceholderText Text:=" "
* * * * * * * * cnt = cnt + 1
* * * * * * End If
* * * * End With
* * Next

* * Dialogs(wdDialogFilePrint).Show

* * For i = 1 To cnt
* * * * ActiveDocument.Undo
* * Next
End Sub

Sub FilePrintDefault()
* * Dim cc As ContentControl
* * Dim cnt As Long, i As Long
* * For Each cc In ActiveDocument.ContentControls
* * * * With cc
* * * * * * If .ShowingPlaceholderText Then
* * * * * * * * .SetPlaceholderText Text:=" "
* * * * * * * * cnt = cnt + 1
* * * * * * End If
* * * * End With
* * Next

* * ActiveDocument.PrintOut Background:=False

* * For i = 1 To cnt
* * * * ActiveDocument.Undo
* * Next
End Sub

--
Regards,
Jay Freedman
Microsoft Word MVP * * * *FAQ:http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all
may benefit.

On Sat, 25 Apr 2009 23:30:37 -0500, "Suzanne S. Barnhill"
wrote:



The OP is referring to MacroButton NoMacro fields, which often use "Click
here and type name" or the like as the prompt text (see
http://word.mvps.org/FAQs/TblsFldsFm...croButton.htm). AFAIK, there is
no way to avoid having the prompt appear if the field hasn't been replaced.


--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org


"grammatim" wrote in message
....
I don't know what your last seven words mean, but you can turn off
"Click and Type" with Office Button Word Options Advanced
Editing Options, about halfway down, uncheck "Enable click and type."


On Apr 25, 7:20 pm, nip wrote:
Office Word 2007
Is there a way to have the "click here to enter text" not appear when
printed if the field is blank- Hide quoted text -


- Show quoted text -


thanks Jay I believe this is what I am looking for. I will give it a
try tomorrow......

Now to take this one step further ...
If I wanted to collect the information that is entered in the control
to an excel spreadsheet do you have a link to a knowledge article on
how to accomplish this?
I am thinking it could be the start of a mini database.
Set up the form in Word with the control to check something as yes or
no or enter text and then have it record the date, and information, to
a spreadsheet. this way you would have one plalce sorted by date
where you can view answers....
is this doable?
  #7   Report Post  
Posted to microsoft.public.word.docmanagement
nip nip is offline
external usenet poster
 
Posts: 19
Default text control question

On Apr 26, 11:17*am, "PamC via OfficeKB.com" u43222@uwe wrote:
Nip: *

You may be able to record a macro that adds the hidden attribute to the
Placeholder text character style. But I'm not sure that's what you want. If
you want the spaces to remain but the words gone, change the *font color to
white.

Pam

nip wrote:
Office Word 2007
Is there a way to have the "click here to enter text" not appear when
printed if the field is blank


--
Message posted viahttp://www.officekb.com


I find this masking the problem and not a correction. The same effect
is possible by darkening the placeholder color. Thanks anyway but I
think Jay is more on the mark. I will post my results after I test it
out.
  #8   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default text control question

If I wanted to collect the information that is entered in the control
to an excel spreadsheet do you have a link to a knowledge article on
how to accomplish this?
I am thinking it could be the start of a mini database.
Set up the form in Word with the control to check something as yes or
no or enter text and then have it record the date, and information, to
a spreadsheet. this way you would have one place sorted by date
where you can view answers....
is this doable?


You might find it easier to achieve both your aims if you stick to the
legacy controls, especially if you anticipate others will complete the
forms. To this end http://gregmaxey.mvps.org/Classic%20Form%20Controls.htm
will be helpful. Then it is relatively simple to collect information from a
batch of forms. See http://www.gmayor.com/ExtractDataFromForms.htm
and
http://gregmaxey.mvps.org/Extract_Form_Data.htm

--

Graham Mayor - Word MVP

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



  #9   Report Post  
Posted to microsoft.public.word.docmanagement
PamC via OfficeKB.com PamC via OfficeKB.com is offline
external usenet poster
 
Posts: 582
Default text control question

That is true. But if this is a form, then something like ... the
undersigned, click and add text here, agrees to... would be printed as ...
the undersigned,, agrees to... if you replace the placeholder text with
nothing. But if that is what you want, then Jay's surely marvelous macro is
best.

Pam

nip wrote:
Nip: Â*

[quoted text clipped - 11 lines]
--
Message posted viahttp://www.officekb.com


I find this masking the problem and not a correction. The same effect
is possible by darkening the placeholder color. Thanks anyway but I
think Jay is more on the mark. I will post my results after I test it
out.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ement/200904/1

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
v2007: Text control (plain text): How to restrict length of data? bixcel Microsoft Word Help 3 May 9th 13 09:22 PM
Text box control sizing Nat Microsoft Word Help 4 September 17th 08 04:15 PM
Embed word control as rich text control in asp.net? Daniel Microsoft Word Help 1 May 7th 07 08:56 PM
Forms - text form field control in a text box KK New Users 2 March 11th 06 01:33 PM
using control center then change to control left takes the item c. mike Microsoft Word Help 4 February 14th 05 02:12 PM


All times are GMT +1. The time now is 09:04 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"