View Single Post
 
Old 07-23-2012, 08:17 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,340
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You cannot reliably control the display (or printing) of text formatted as hidden. Whether such text is displayed and/or printed is entirely dependent on the user's Word setup. For example, something as simple a clicking on the ¶ symbol on the Ribbon's Home tab can override any attempt to hide the text.

The only reliable way to control the display of a given set of text is to control whether it is present in the document. This means having either a bookmarked range than you code conditionally populates/erases or a DOCPROPERTY field that references a custom document property that conditionally contains the text or conditionally references another one that does contain the text.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote