- #PRINTER ADDING DOCUMENT INFO AFTER PRINT JOB HOW TO#
- #PRINTER ADDING DOCUMENT INFO AFTER PRINT JOB CODE#
MsgBox ("Print Hidden Text & Comments: ON") MsgBox ("Print Hidden Text & Comments: OFF") ' Options.PrintComments is automatically set to false! ' and warns /changes PrintComments setting as well. It may or may not apply in your situation.
![printer adding document info after print job printer adding document info after print job](https://computing.cs.cmu.edu/desktop/resources/2-scs-printer-tap-id.jpg)
Here’s a different version of the macro which takes the PrintComments change into account. However, setting the PrintHiddenText property to True has no effect on the setting of the PrintComments property.” “Setting the PrintHiddenText property to False automatically sets the PrintComments property to False. In Microsoft’s documentation is the gotcha if changing the Print Hidden Text setting via VBA. If that seems too easy for Word and Office, you’d be right. Remember that these are overall Word settings, they’ll apply to all documents open at the time you make the change.ĪND the Print Hidden Text option will remain on for all Word docs until it’s changed. Right-click on the new ribbon item then Rename and give the button a better name (instead of Project.Module….) and select an icon. Go to Customise Ribbon (or Customize Quick Access Toolbar).Īdd the macro to whichever ribbon tab you like. Once you have the macro, attach it to the ribbon or Quick Access Toolbar. However neither of these macros is enough, see ‘ The Comments Catch‘ below. In a MsgBox the setting Options.PrintHiddenText will return True/False text. MsgBox ("Print Hidden Text: " & Options.PrintHiddenText) Options.PrintHiddenText = Not Options.PrintHiddenText pointed out the much shorter version that does the same job in two lines. It also allows for additional commands in the IF statement, which will be necessary, see below.
#PRINTER ADDING DOCUMENT INFO AFTER PRINT JOB CODE#
The above code is deliberately simple with a full-form IF…Else. Comment the MSGBox lines out if you wish. Making the ribbon button change according to the setting is a whole different topic so we’ve kept it simple with a little message box to tell you the current setting. ' Switches the Word global option Print Hidden Text Instead dig into Word VBA then attach a short macro to a ribbon or QAT button.Īdd the following code to the document. Sadly, there’s no ribbon or Quick Access Toolbar option to Print Hidden Text Rather than dig down into Word Options, there is a way to change Print Hidden Text at the document level. In many ways, that’s a better and more flexible option than using Print Hidden Text. Change the style to make the hidden text visible or not. One choice we’ve already covered in Hiding in Styles is using a style with hidden text as an attribute. That makes it difficult, but not impossible to change the settings a document level or just for one print job. Microsoft could fix this but there’s little financial reason to do it. The decision was made many years ago and it’s now deep in Word’s complex code. Print Hidden Text is just one of many overall Word options that would make more sense at the document level.
![printer adding document info after print job printer adding document info after print job](https://cdn.shopify.com/s/files/1/1556/9563/products/Sharp_MX_6580N_MX_7580N_2_1024x1024.jpg)
There’s no good answer except to say ‘History’. Why is this a global option for all Word documents rather than a choice set in each document, for example in the Print pane? After all, printing hidden text is something you’re likely to turn on/off for individual documents or separate print jobs. Hidden text positioning and formatting tricks in Word See: Hidden Text, Images and objects in Word
![printer adding document info after print job printer adding document info after print job](https://files.constantcontact.com/4606d256201/436ba8a4-0e99-4cae-8139-7d24ef2583db.png)
Then go down to the Printing Options area and tick or untick the “Print hidden text” box, depending on your preference. Unfortunately, it’s not a document setting nor is it in the Print pane or Print dialog options as you’d expect. Print Hidden Text is a global Word Option that applies to all documents.
#PRINTER ADDING DOCUMENT INFO AFTER PRINT JOB HOW TO#
Here’s how to change the setting quickly from the ribbon or change the print setting just for one print job.īy default, the hidden text will not be printed, but you can choose to print it if you want. Hidden Text Printing in a Word document is possible but is more complex than it should be.