Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
v2007: Text control (plain text): How to restrict length of data? | Microsoft Word Help | |||
Text box control sizing | Microsoft Word Help | |||
Embed word control as rich text control in asp.net? | Microsoft Word Help | |||
Forms - text form field control in a text box | New Users | |||
using control center then change to control left takes the item c. | Microsoft Word Help |