

'Delayed call from class Word 2010/2013 onlyĪctiveDocument.Styles("Placeholder Text").Font.Hidden = False 'Initialize variable and class (Word 2010/2013 only) when Word starts

Public p_bInPreviewPrintEditMode As Boolean
WORK DOCUMENT NOT PRINTING TEXT BOX CODE
Paste the following code in the class module.Some elements (e.g., the class module) is not required for Word 2007. The method is developed for Word 2010, but includes all necessary code for Word 20 users. The Normal project is project associated with the Normal template. Rename the class module "clsPrint." Rename the standard module any meaningful name. Using the VBE Insert menu, insert a class module and a standard module in the Normal project.Open Word, open the VB Editor (VBE) (i.e., press ALT+F11) and open the Normal project.This can of course be done manually if you have a willing group of form users, but an automated process requires a VBA solution. PrintHiddenText property to false and print the document the PHT text will not be printed. Hidden to true, set the application options.

If you temporarily set the Placeholder text style font property. Placeholder text, like most text in Word, is defined by a style. The first method employs the application event "DocumentBeforePrint," repurposed Print commands and a temporary modification of the document's Placeholder text style. Method I - Detect Events/Intercept Commands/Modify PHT Style There is no option in Word to exclude printing content control PHT, and without an intensive form validation process, you can't make the user fill out each field.Įach of the automated solutions provided require VBA which means the template and form documents must be macro enabled (i.e. Unfortunately there isn't a simple solution. Representation of a printed document with bubble added for emphasis
