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
[email protected]
Word MVP site: http://www.word.mvps.org
 
Top