Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Hiding and UnHiding text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
plkijn - 12 Jan 2006 10:35 GMT
I need some help with hiding and unhiding text with VBA.

I have defined some bookmarks in a master document that a user can hide with
a macro that selects the bookmark then hides the selection by changing the
font to hidden.  I can't make an undo function as VBA can't select the hidden
bookmark.

Short of selecting the whole document and unhiding, can anyone suggest how I
can easily get around this?  Ie programatically select a hidden section of
text.

Thanks

plkijn
Helmut Weber - 12 Jan 2006 14:24 GMT
Hi,

hmm... I wonder,

this one is working here and now:

With ActiveDocument.Bookmarks("Test")
  .Range.Font.Hidden = Not (.Range.Font.Hidden)
End With

--
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.