The code that automatically performs a first line indent to the tab level of the preceding heading is the original Sub from the first example: Option Explicitĭim firstIndent As Double 'value in "points"įirstIndent = myDoc.Styles(para.Style).ParagraphFormat.LeftIndentĭebug.Print para.Style & " first tab stop at " & _ĭebug. UPDATE2: the sample text original I used in shown in this first document:
The code update below accurately determines each Heading indent tab stop. UPDATE1: the earlier version of the code below set the paragraphs to the Document level first tab stop, and did not accurately grab the tabstop set for the Heading styles. If you keep pressing Ctrl + T, Word will keep. In the Adjust List Indents window, change the Bullet position to adjust the bullet indent size or change the Text indent to adjust the text indent size after a bullet. If there are no user-defined tab stops in the paragraph, Word indents to the first default tab stop. Right-click the bullet and select Adjust List Indents in the pop-up menu. This shortcut will move all lines except the first one to the next tab stop. You can press Ctrl + T to apply a hanging indent to a paragraph. On most computers, you can create a hanging indent by selecting the line you want indented and then holding down the Ctrl and T buttons at the same time. Creating a hanging indent using a keyboard shortcut. An example is below: There are a few ways to create hanging indents. After text input or copying, select them and set the first line indentation uniformly. If so, then pick off the value of the first tab stop to set as the indent for the subsequent paragraphs. A hanging indent is an indent that indents all text except for the first line. Since Word can set the first line indentation, when inputting or copying text into Word, there is no need to enter a space on the first line. To use a macro to accomplish this, you have to check each paragraph in your document and check to see if it is a "Header" style.