Is there an Accordion Effect in Word ?

Does Microsoft-Word 2007 or 2010 has any thing like "Accordion Effect" to be able to display or not some paragraph as I wish? (without deleting of course)
 

Question Info


Last updated December 14, 2018 Views 1,756 Applies to:
Answer
Answer
The short answer is no, but you could format the text you want to hide with a specific character style and then use a macro to toggle the hidden font parameter of that style. e.g. assuming a style called 'Hidden'


Sub ToggleHidden()
Dim oStyle As Style
    ActiveWindow.View.ShowHiddenText = False
    For Each oStyle In ActiveDocument.Styles
        If oStyle.NameLocal = "Hidden" Then
            With oStyle.Font
                .Hidden = Not .Hidden
            End With
            Exit For
        End If
    Next oStyle
End Sub
Graham Mayor (Microsoft Word MVP 2002-2019)
For more Word tips and downloads visit my web site
https://www.gmayor.com/Word_pages.htm

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Answer
Answer
Early buzz about Word 2013 promised something along these lines, but I have not seen it demonstrated.
Microsoft MVP (Word) since 1999
Fairhope, Alabama USA
http://ssbarnhill.com
http://wordfaqs.ssbarnhill.com
Screen shots captured with TechSmith's Snagit

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.