nonprintable text

  • Thread starter Thread starter Michael
  • Start date Start date
M

Michael

Could someone help me please?

I have some text in my document which I want to be visible
when viewed electronically, but would prefer that it
wasn't seen on the printed version of the document.

I've had a go with some FilePrint macros but if I am able
to remove the text for printing, it is no longer visible
electronically. I would prefer to have the text in the
footer rather than the main doc so if that is possible,
could you please let me know.

Thanks
Mick
 
If this is a one-page document, or if it is a multipage document but the same "editorial" text you want in the footer is the same for all pages, you can put the editorial text in a text box in the footer, then suppress printing of the text box in the footer by clicking on Tools | Options | Print | uncheck the "Drawing objects" box. Unfortunately this method won't be suitable if you have other drawing objects in the body of your document that you do want to print.

You can also format the editorial text as hidden. Make the hidden text visible on the screen by clicking on Tools | Options | View | check the box for "Hidden text". Suppress priinting of the hidden text by clicking on Tools | Options | Print | uncheck the "Hidden text" box. The disadvantage of this method is that most people don't work with hidden text turned on in View.
 
A sophistication of that technique: define a new style to use for this
special text. Write your own FilePrint macro that sets this style to hidden,
prints the document, then sets the style back to non-hidden.




garfield-n-odie said:
If this is a one-page document, or if it is a multipage document but the
same "editorial" text you want in the footer is the same for all pages, you
can put the editorial text in a text box in the footer, then suppress
printing of the text box in the footer by clicking on Tools | Options |
Print | uncheck the "Drawing objects" box. Unfortunately this method won't
be suitable if you have other drawing objects in the body of your document
that you do want to print.
You can also format the editorial text as hidden. Make the hidden text
visible on the screen by clicking on Tools | Options | View | check the box
for "Hidden text". Suppress priinting of the hidden text by clicking on
Tools | Options | Print | uncheck the "Hidden text" box. The disadvantage
of this method is that most people don't work with hidden text turned on in
View.
 
Thanks Garfield, but unfortunately I do have other pics
which need to be printed.

Is there any way that I can make the doc automatically
overide the users unchecked view hidden option?
 
I'm not a macro expert, but I think this will work... You could add the following to an existing AutoOpen() macro in the document, or create a new AutoOpen() macro in the document containing:

With ActiveWindow
With .View
.ShowHiddenText = True
End With
End With
With Options
.PrintHiddenText = False
End With
 
It worked!!...thanks so much

-----Original Message-----
I'm not a macro expert, but I think this will work...
You could add the following to an existing AutoOpen()
macro in the document, or create a new AutoOpen() macro in
the document containing:
 
Bonjour,

Dans son message, < garfield-n-odie > écrivait :
In this message, < garfield-n-odie > wrote:

|| I'm not a macro expert, but I think this will work... You could add the
following to an
|| existing AutoOpen() macro in the document, or create a new AutoOpen()
macro in the document
|| containing:
||
|| With ActiveWindow
|| With .View
|| .ShowHiddenText = True
|| End With
|| End With
|| With Options
|| .PrintHiddenText = False
|| End With
||

Just a little comment or two...
Whenever I change user settings, I first store the user's original settings,
change the settings to what I need, and then reset the settings to their
original values (usually when closing the document).

Also,
.ShowHiddenText = True
overrides the ShowAll button. Make sure you are addressing non-power users.
It would bother me to click on ¶ to hide hidden text, and still be able to
see it! ;-)

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
Cats rule -- dogs drool !!


garfields #1 fan said:
It worked!!...thanks so much


You could add the following to an existing AutoOpen()
macro in the document, or create a new AutoOpen() macro in
the document containing:
 
Bonjour, Jean-Guy. I agree, what you said would be better, but I don't know how to do all that. Like I said, I'm not a macro expert. Please feel free to post some better code for the OP's (and my) benefit.
 
The only down side of this is that if the document is distributed, the
recipient will see the macro warning and disable the macros, or have the
macro setting set high so the macros will be disabled automatically. For
personal use the macro would be better placed in the document template (not
normal.dot).

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Hi Mick

I'm wandering into this party a bit late, but I'll throw in one more
technique...

If you already had FilePrint macros that delete the text and print the
document, you can just put the line
ActiveDocument.Undo
in those macros right before the End Sub statement. That will undo the
deletion (since printing can't be undone) and put the text back.
 
Yes, Jay, that seems to be the easiest Point B to get to from the OP's Point
A, but as with the other methods, the method you propose comes with a
caveat. If the user has the Update fields at print option checked, that
will be the first target of the Undo. Perhaps another option would be to
change the font color to match the background color, print, and then restore
the original font color.

Regards,
Chad DeMeyer
 
Back
Top