
Home tabParagraph SettingsSpecialHangingOk. Instead of using the tab key, use the Paragraph option in Word to set it up. To create a hanging indent, select the paragraph and use the following instructions. The InchesToPoints method is used to convert inches to points. The body of your paper should have a first line indent of half an inch. Move your cursor to anywhere in the paragraph. ActiveDocument.Paragraphs (1).FirstLineIndent InchesToPoints (1) This example sets a hanging indent of 0.5 inch for the second paragraph in the active document. To set the a first-line indentation as a default, modify the normal style: 1. 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. This example sets a first-line indent of 1 inch for the first paragraph in the active document. 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 so, then pick off the value of the first tab stop to set as the indent for the subsequent paragraphs. 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.
