• Show Hidden Text (2003 SP1)

    Author
    Topic
    #426573

    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.

    Viewing 0 reply threads
    Author
    Replies
    • #986249

      I think VBA is the only way to go if you don’t want to change all users settings in Word globally.

      The AutoNew and AutoOpen macros don’t appear to be blocked from a hyperlink opening when the macros reside in Normal.dot. I would investigate the feasibility of macros in Normal.dot that examine the contents of the opened file and, if applicable, sets the hidden text settings the way you want. Perhaps the security that disables these macros in a document doesn’t extend to add-ins either.

      • #986292

        Thanks for the response, Andrew.

        I’m trying to avoid having to change anything on the users’ computers. If I understand your response, your suggestion would require changing everybody’s NORMAL.DOT file, right?

        Thanks,

    Viewing 0 reply threads
    Reply To: Show Hidden Text (2003 SP1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: