A family of Microsoft word processing software products for creating web, email, and print documents.
Dennista wrote:
BTW - just to be clear about my reasons for wanting a non-code
answer: I'm trying to create a template that I can share with 4-5
others and they are mostly computer novices. I am trying to make life
as simple as possible for them. Having to run a macro to print - even
if it's as simple as having to click a different "Print" button - is
going to throw some of them.
You can make the macro run automatically when the user clicks the Quick Print button that can be placed on the Quick Access Toolbar just by changing the first line from
Sub PrintWithoutPlaceholderText()
to
Sub FilePrintDefault()
For the Print button on the Office button menu (and the Ctrl+P shortcut), add this modified version as a second macro in the same template:
Sub FilePrint()
Dim cc As ContentControl
For Each cc In ActiveDocument.ContentControls
If cc.ShowingPlaceholderText Then
cc.Range.Font.ColorIndex = wdWhite
End If
Next
Dialogs(wdDialogFilePrint).Show
For Each cc In ActiveDocument.ContentControls
If cc.ShowingPlaceholderText Then
cc.Range.Font.ColorIndex = wdAuto
End If
Next
End Sub
Jay Freedman
MS Word MVP FAQ: http://word.mvps.org