Solved

Force Hidden Text. vba?

Posted on 2003-11-20
4
343 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
  • 2
4 Comments
 
LVL 22

Expert Comment

by:Dreamboat
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Cool, JOrzech.

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

Featured Post

A Knowledge Base That Stays Up-to-Date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Do you ever need to create a 20 page Word document for some testing purpose? Are you tired of copying & pasting old boring "lorem ipsum" text over and over again, increasing font size and line space in order to make the document 20+ pages long? Look…
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…
This video walks the viewer through the process of creating an MLA formatted document, as well as a bibliography with citations.
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now