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 newsgroupso all
may benefit.
- Show quoted text -