Hiding and UnHiding text

P

plkijn

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
 
H

Helmut Weber

Hi,

hmm... I wonder,

this one is working here and now:

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top