Solved

Force Hidden Text. vba?

Posted on 2003-11-20
4
352 Views
Last Modified: 2006-11-17
I have a document in Word with instructions that I don't want printed.  I've made these instructions into hidden text, but if the user has the option to "print hidden text", the instructions will be printed.

I know I can delete the text when they print, but I need the instructions to always be in the document, just not printable.

Is there a way to force "hide hidden text"? Any suggestions?
0
Comment
Question by:ballistic
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 22

Expert Comment

by:Dreamboat
ID: 9789955
Sure. You can force hidden text with a macro.
But, how will you ensure your users are allowing macros to run?

I'll get you the VBA if you want it.

And...do you want the hidden text to always be viewable and never to be printable, correct?
0
 

Author Comment

by:ballistic
ID: 9790225
These users will have macros enabled and will allow them to run.

That's right, always viewable and never printable.

I appreciate it.
0
 
LVL 37

Accepted Solution

by:
Joanne M. Orzech earned 500 total points
ID: 9790504
You can put this code in your document open event - or document new event:

    With ActiveWindow
        With .View
            .ShowHiddenText = True
        End With
    End With
    With Options
        .PrintHiddenText = False
    End With

HTH
0
 
LVL 22

Expert Comment

by:Dreamboat
ID: 9792130
Cool, JOrzech.

ballistic: Let us know if you don't understand what to do with the code.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When creating Microsoft Word-based forms there may be a need to have a form field repeated throughout the whole document. For instance, with a company name, you may want this information repeated automatically throughout the document rather than man…
Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question