Word 2007 Text Control Box Printing

S

shaun

Hi

I have several text control boxe's in word document. My question is if one
of these boxes is not filled in. ie left with Click here to enter text. I
don't want that information printed. How do I set that option?
 
G

Greg Maxey

shaun,

That isn't an option that can be set. I suppose you could set the hidden
font attribute to the text in these ContentControls to true before printing
and then ensure printing hidden text is not enabled.

You could use a macro to automate this process. Something like:

Sub FilePrint()
Dim oHT As Boolean
oHT = Application.Options.PrintHiddenText
Application.Options.PrintHiddenText = False
Dim oCC As ContentControl
For Each oCC In ActiveDocument.ContentControls
If oCC.ShowingPlaceholderText = True Then oCC.Range.Font.Hidden = True
Next oCC
Dialogs(wdDialogFilePrint).Show
Application.Options.PrintHiddenText = oHT
For Each oCC In ActiveDocument.ContentControls
If oCC.ShowingPlaceholderText = True Then oCC.Range.Font.Hidden = False
Next oCC
End Sub

Hi

I have several text control boxe's in word document. My question is
if one of these boxes is not filled in. ie left with Click here to
enter text. I don't want that information printed. How do I set
that option?

--
Greg Maxey

See my web site http://gregmaxey.mvps.org
for an eclectic collection of Word Tips.

"It is not the critic who counts, not the man who points out how the
strong man stumbles, or where the doer of deeds could have done them
better. The credit belongs to the man in the arena, whose face is
marred by dust and sweat and blood, who strives valiantly...who knows
the great enthusiasms, the great devotions, who spends himself in a
worthy cause, who at the best knows in the end the triumph of high
achievement, and who at the worst, if he fails, at least fails while
daring greatly, so that his place shall never be with those cold and
timid souls who have never known neither victory nor defeat." - TR
 
S

shaun

Hi Greg I figured out you can clear the text manually in design mode and then
stretch the box with spaces.

So on mouse over it highlights the area to be filled in without the text
needing to be there.. Much better. Thanks for your efforts.
 
G

Greg Maxey

shaun,

Got it. So you don't really need or care for the prompt to be displayed at
all. Glad you found a workable solution.

Hi Greg I figured out you can clear the text manually in design mode
and then stretch the box with spaces.

So on mouse over it highlights the area to be filled in without the
text needing to be there.. Much better. Thanks for your efforts.

--
Greg Maxey

See my web site http://gregmaxey.mvps.org
for an eclectic collection of Word Tips.

"It is not the critic who counts, not the man who points out how the
strong man stumbles, or where the doer of deeds could have done them
better. The credit belongs to the man in the arena, whose face is
marred by dust and sweat and blood, who strives valiantly...who knows
the great enthusiasms, the great devotions, who spends himself in a
worthy cause, who at the best knows in the end the triumph of high
achievement, and who at the worst, if he fails, at least fails while
daring greatly, so that his place shall never be with those cold and
timid souls who have never known neither victory nor defeat." - TR
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top