Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Feb 2001
    Location
    Richland, Washington, USA
    Posts
    407
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Show Hidden Text (2003 SP1)

    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.

  2. #2
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Show Hidden Text (2003 SP1)

    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.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  3. #3
    4 Star Lounger
    Join Date
    Feb 2001
    Location
    Richland, Washington, USA
    Posts
    407
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Show Hidden Text (2003 SP1)

    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,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •