Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2012, 08:27 AM
Phil Pense Phil Pense is offline Word Macro for hiding text Windows 7 64bit Word Macro for hiding text Office 2007
Novice
Word Macro for hiding text
 
Join Date: Jan 2012
Posts: 2
Phil Pense is on a distinguished road
Default Word Macro for hiding text

Following the guidance on a macro tutorial that would hide/show text on demand. Pasted the VBA into Word document but do not know how to proceed so that text line(s) can toggle.

Images are uploaded to a Microsoft SkyDrive folder.


https://skydrive.live.com/redir?resi...F3F75A51A!1670

An excerpt of some of the tutorial is also attached as "Method 2"

Guidance sought
Attached Files
File Type: docx Private Sub ToggleButton1.docx (11.3 KB, 28 views)
File Type: docx Method 2 of Macro.docx (72.4 KB, 24 views)
Reply With Quote
  #2  
Old 07-23-2012, 08:17 PM
macropod's Avatar
macropod macropod is offline Word Macro for hiding text Windows 7 64bit Word Macro for hiding text Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
hiding images in word document gib65 Drawing and Graphics 3 08-17-2011 11:09 AM
hiding selected objects in word document gib65 Word 0 08-09-2011 12:00 PM
Word Macro for hiding text Need help on Macro 03- Find text - if text is blank then remove line simpleonline1234 Word VBA 1 02-25-2011 02:28 AM
Hiding text Reg06 Visio 0 01-15-2011 08:04 AM
Recomend a information hiding tool for word 2007 files AlexanderLee Word 0 01-05-2010 01:11 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft