Solved

Force Hidden Text. vba?

Posted on 2003-11-20
4
344 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

There is a feature provided by MS Word that lets you create an Table of Contents for your Word document automatically. To use this feature for other documents there are two steps involved,   1.  Prepare your document for a table of contents (he…
Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…

930 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

18 Experts available now in Live!

Get 1:1 Help Now