Hide/Show paragraph

F

Frankie Yung

What's the best way to hide/show specific paragraph? I want to have some
kind of switch to kind certain paragraphs.

Thanks.
 
J

Jean-Guy Marcil

Frankie Yung was telling us:
Frankie Yung nous racontait que :
What's the best way to hide/show specific paragraph? I want to have
some kind of switch to kind certain paragraphs.

Thanks.

Assign a bookmark to your paragraph (let's say "myPara1").

Then use code like this:

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

to toggle between hidden and not hidden.


--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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