medasfen.blogg.se

Collapse expand headings in microsoft word
Collapse expand headings in microsoft word





collapse expand headings in microsoft word

Some of them are fine while others can get you busy in recovering the data back. Cope with the Consequences of Word Failure To expand all texts, you will need this one: Sub ExpandAllSelectedTexts()īesides, you can take step 10 to 14 in method 1 to create buttons in the document to expand or collapse all texts at once. Then to collapse all texts, paste this macro there:įor Each objBookmark In ActiveDocument.Bookmarks.If you apply method 1 to create several buttons to collapse or expand contents, you can use the following method to show or hide the texts in batches. Method 2: Collapse or Expand Multi-part of a Document Double click on the button to either expand or collapse the text.Now press “Alt+ F9” and you shall see the button.The “ Introduction” is the label you want to show on the button.The “ CollapseOrExpandTheSelectedText1” is the macro name in step 8.MACROBUTTON CollapseOrExpandTheSelectedText1 Introduction Inside the field, enter the bellowing codes:.Then press “Ctrl+ F9” to insert a field.For instance, we place it at the line above the selected text.

collapse expand headings in microsoft word

Next put insertion pointer near the bookmark but never inside it.Make sure it is as same as the name you entered in step 4. The “Introduction” refers to the bookmark name.You can change the macro name to whatever you want to call it.Not ActiveDocument.Bookmarks("Introduction"). Double click on module to open the coding area on the right side and paste the following codes:ĪctiveDocument.Bookmarks("Introduction"). = _.Next click “Normal” and then the “Insert” tab.Now press “Alt+ F11” to open the VBA editor.Enter a bookmark name in the text box and click “Add” to create a bookmark for the selected content.

collapse expand headings in microsoft word

  • Then click “Bookmark” in “Links” group to open the “Bookmark” dialog box.
  • First off, select the text you want to collapse.
  • Method 1: Collapse or Expand a Single Part of a Document For this reason, we found 2 solutions you can adopt in versions prior to Word 2013. However, if you are using Word 2010 or versions earlier, there is no such luck. If you have Word 2013 or version later, you may refer to this link to know more about the function: In this article, we are going to offer you 2 smart ways to collapse or expand parts of your Word document.Įvery now and then, have you wonder how wonderful it would be if you can collapse a certain range of document to view two nonconsecutive parts? The good news is there is this built-in feature in Word 2013 and versions later.







    Collapse expand headings in microsoft word