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  

Having Word Print Blanks



 
 
Thread Tools Display Modes
  #1  
Old March 24th, 2010, 01:48 PM posted to microsoft.public.word.docmanagement
Bart
external usenet poster
 
Posts: 89
Default Having Word Print Blanks

I teach school and I would like to be able to have a document where I can
have the answers to questions show up on the screen but be blank when I print
them out. Is there anyway I can make word leave things blank only when I
print them?
  #2  
Old March 24th, 2010, 02:02 PM posted to microsoft.public.word.docmanagement
Tom Willett[_2_]
external usenet poster
 
Posts: 877
Default Having Word Print Blanks

Have the background of your document black, and make the text white, then
don't let it print the background.

"Bart" wrote in message
...
:I teach school and I would like to be able to have a document where I can
: have the answers to questions show up on the screen but be blank when I
print
: them out. Is there anyway I can make word leave things blank only when I
: print them?


  #3  
Old March 24th, 2010, 02:02 PM posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
Default Having Word Print Blanks

Sort of. Make sure that "Hidden text" is not checked on the Print tab of
Tools | Options but *is* checked on the View tab. Put the answers in a table
cell with the height specified as what Exact amount is required to contain
the text. Format the answer text (or, better, the style used for the
answers) as Hidden.

Another approach is to use a distinctive style for the answers and have a
print macro that modifies the font color of this style to white, prints the
document, and then changes the font color back to Automatic.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"Bart" wrote in message
...
I teach school and I would like to be able to have a document where I can
have the answers to questions show up on the screen but be blank when I
print
them out. Is there anyway I can make word leave things blank only when I
print them?


  #4  
Old March 24th, 2010, 02:17 PM posted to microsoft.public.word.docmanagement
Graham Mayor
external usenet poster
 
Posts: 18,297
Default Having Word Print Blanks

Create a new character style - let's call it 'Answers' - based on the
undelying style and apply it to the answers.You can then use the following
macro to toggle the display of the answers. If you print the document while
the answers are not displayed, the answers will not be printed.

Sub HideAnswers()
Dim bSHidden As Boolean
Dim bPHidden As Boolean
bSHidden = ActiveWindow.View.ShowHiddenText
bPHidden = Options.PrintHiddenText
With ActiveDocument.Styles("Answers").Font
.Hidden = Not .Hidden
If .Hidden = True Then
ActiveWindow.View.ShowHiddenText = False
Options.PrintHiddenText = False
Else
ActiveWindow.View.ShowHiddenText = bSHidden
Options.PrintHiddenText = bPHidden
End If
End With
End Sub

http://www.gmayor.com/installing_macro.htm


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Bart" wrote in message
...
I teach school and I would like to be able to have a document where I can
have the answers to questions show up on the screen but be blank when I
print
them out. Is there anyway I can make word leave things blank only when I
print them?



  #5  
Old March 24th, 2010, 02:21 PM posted to microsoft.public.word.docmanagement
Graham Mayor
external usenet poster
 
Posts: 18,297
Default Having Word Print Blanks

If you would prefer to retain the space that the answers occupied and the
answers are not in a table, then the following would work instead

Sub HideAnswers()
If ActiveDocument.Styles("Answers").Font.Color = wdColorAuto Then
ActiveDocument.Styles("Answers").Font.Color = wdColorWhite
Else
ActiveDocument.Styles("Answers").Font.Color = wdColorAuto
End If
End Sub

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Bart" wrote in message
...
I teach school and I would like to be able to have a document where I can
have the answers to questions show up on the screen but be blank when I
print
them out. Is there anyway I can make word leave things blank only when I
print them?



 




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 08:31 AM.


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