A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

nonprintable text



 
 
Thread Tools Display Modes
  #11  
Old June 23rd, 2004, 05:31 AM
garfield-n-odie
external usenet poster
 
Posts: n/a
Default nonprintable text

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.


"Jean-Guy Marcil" wrote:

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
ISTOO
Word MVP site:
http://www.word.mvps.org




  #12  
Old June 23rd, 2004, 05:57 AM
Jezebel
external usenet poster
 
Posts: n/a
Default nonprintable text

It really is easy.

Sub AutoOpen()
ActiveWindow.View.ShowHiddenText = TRUE
End Sub




"Mick" wrote in message
...
You make it sound so easy. I'm using Word97 and am
hopeless with macros.

-----Original Message-----
Only by using a macro (eg AutoOpen) that unchecks it.


"Mick" wrote in

message
...
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?

-----Original Message-----
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
.



.



  #13  
Old June 23rd, 2004, 06:00 AM
Graham Mayor
external usenet poster
 
Posts: n/a
Default nonprintable text

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
Word MVP web site http://word.mvps.org




garfield-n-odie wrote:
Cats rule -- dogs drool !!


"garfields #1 fan" wrote:

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:

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


"Mick" wrote:

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?

-----Original Message-----
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
.


.



  #14  
Old June 23rd, 2004, 08:33 PM
Jay Freedman
external usenet poster
 
Posts: n/a
Default nonprintable text

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.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

Mick wrote:
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?

-----Original Message-----
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
.



  #15  
Old June 24th, 2004, 08:59 AM
macropod
external usenet poster
 
Posts: n/a
Default nonprintable text

Hi Michael,

Use can use a Word field to do this. Explaining it is a lot more complicated
than pointing you to an example of how it's done. If you download the Word
document at:
http://www.wopr.com/cgi-bin/w3t/show...&Number=249902
(url all one line)
and check out 'Hide instructions at print time' on page 8.


Cheers


"Michael" wrote in message
...
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



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.693 / Virus Database: 454 - Release Date: 31/05/2004


  #16  
Old June 24th, 2004, 03:38 PM
Chad DeMeyer
external usenet poster
 
Posts: n/a
Default nonprintable text

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

"Jay Freedman" wrote in message
...
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.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

Mick wrote:
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?

-----Original Message-----
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
.





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.