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