I have some text in my document that I want to have appear on screen, but not when the document is printed. To do this I’ve formatted it as “Hidden”. To make it work, the Show Hidden Text option has to be turned on (and the Print Hidden Text has to be turned off). To ensure this, I use VBA code in the Document_Open() routine to save the existing values of these two properties, then set them to True and False, respectively. In the Document_Close() routine, I restore the original values (whatever they were).
This seems to work fine… except if the document is opened via an HTML hyperlink — the Document_Open() routine appears to be ignored (probably a security thing). Is there a way to get around this? Is there another way to show-on-screen / hide-on-print text without having to rely on VBA code to make sure it works correctly?
Thanks.