A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

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 » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Microsoft Word Help
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Print content if the box is checked .. if not checked, dont print



 
 
Thread Tools Display Modes
  #1  
Old October 26th 07, 06:42 AM posted to microsoft.public.word.docmanagement
Chuck[_2_]
external usenet poster
 
Posts: 6
Default Print content if the box is checked .. if not checked, dont print

hi guys,

as you can tell, a challenge has been set to me to provide a document
with teh ability to only print items associated to the checkbox which
is checked, and not print those items associated to a non checked box

i have googled & searched here for anything related on tutorials or
where to start but have found nothing

can someome advise

if it is possible to do the above? and if so, where can i get
additional information on this?

cheers
chuck

Ads
  #2  
Old October 26th 07, 07:23 AM posted to microsoft.public.word.docmanagement
Chuck[_2_]
external usenet poster
 
Posts: 6
Default Print content if the box is checked .. if not checked, dont print

hi guys,

i did a bit of more research and found this

=====
http://help.lockergnome.com/office/W...ict992089.html

Insert a bookmark around section of the text that you might want
deleted and
have a macro that contains the following code run on exit from the
associated checkbox

With ActiveDocument
..Unprotect
If .FormFields("Check1").CheckBox.Value = False Then
..Bookmarks ("CheckBox1Text").Range.Font.Hidden=True
Else
..Bookmarks("CheckBox1Text").Range.Font.Hidden=Fal se
End If
..Protect wdAllowOnlyFormFields, NoReset
End With

Under ToolsOptionsView, you will want to have the display of Hidden
Text
enabled so that the user can go back and change their selection and
under
ToolsOptionsPrint, make sure that the box for Hidden Text is
unchecked so
that text that is so formatted does not print.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

===================

now, i have created a macro based on the above..

With ActiveDocument
.Unprotect

If .FormFields("Check15").CheckBox.Value = False Then
.Bookmarks("CheckBox15Text").Range.Font.Hidden = True
Else
.Bookmarks("CheckBox15Text").Range.Font.Hidden = False
End If

If .FormFields("Check13").CheckBox.Value = False Then
.Bookmarks("CheckBox13Text").Range.Font.Hidden = True
Else
.Bookmarks("CheckBox13Text").Range.Font.Hidden = False
End If

If .FormFields("Check14").CheckBox.Value = False Then
.Bookmarks("CheckBox14Text").Range.Font.Hidden = True
Else
.Bookmarks("CheckBox14Text").Range.Font.Hidden = False
End If

If .FormFields("Check17").CheckBox.Value = False Then
.Bookmarks("CheckBox17Text").Range.Font.Hidden = True
Else
.Bookmarks("CheckBox17Text").Range.Font.Hidden = False
End If

.Protect wdAllowOnlyFormFields, NoReset

End With

End Sub

i have put this in
Normal Modules NewMacros

however, this is not working

can anyone advise what i have done wrong?

cheers

  #3  
Old October 26th 07, 08:11 AM posted to microsoft.public.word.docmanagement
Chuck[_2_]
external usenet poster
 
Posts: 6
Default Print content if the box is checked .. if not checked, dont print

ok, now i am at a loss

i have figured out what to do in respect to the above .. however,

some bookmarks are not showing up as bookmarks and for some reason,
one bookmark always stays visible even when it shouldnt

is this a foramtting thing within Word?

 




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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I set up forms to print out only checked items? Snaglet Microsoft Word Help 1 June 23rd 06 07:19 PM
return address doesn't print on envelopes (omit not checked) Richoldman Microsoft Word Help 1 May 9th 06 09:57 AM
My documnets are Printing Out at 50% & if checked all Print Sett Ronda Simmons Microsoft Word Help 1 July 27th 05 08:02 PM
No Way My Documents` actually checked... Claud Microsoft Word Help 4 March 1st 05 07:19 AM
why dont some cells with data dont print in word?? jay Tables 0 February 28th 05 04:59 PM


All times are GMT +1. The time now is 02:08 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004-2019 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.