|
[Quoted Text] > Specifically, I would like to link the text to the checkbox through a > bookmark system or something of the sort. I don't want the text to be > hard coded into VBA which will confuse others if they have to update > any of my documents in the future. I was hoping that somebody would > know where I could find an example of this type of code. I would think > that it has been done before but I can't seem to find much. >
You could certainly put bookmarks around the text sections to identify them. Then you can set the hidden font property, for example: ActiveDocument.Bookmarks("Sec1").Range.Font.Hidden = True 'or false
Another possibility is to format each "section" with a unique style name (the formatting of the styles can be identical). Then set the hidden property for the style: ActiveDocument.Styles("Sec1").Font.Hidden = true
Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005) http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-)
|