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. If all you want to do is begin each paragraph. It also automatically formats the text so that subsequent paragraphs have a first-line indent. On the Indents and Spacing tab, under Indentation, select First line. Select Format, and then choose Paragraph. On the Home tab, right-click the Normal style, and choose Modify. In Microsoft Word, this adds a 0.5 (1.27cm) indent at the left margin. First-line indent by default Put the cursor anywhere in the paragraph. UPDATE2: the sample text original I used in shown in this first document: One simple way to indent text is to place the cursor at the start of a paragraph and hit the tab key on your keyboard. 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. Hello wonderful Word people, in this tutorial we're going to look at doing our first line indent for our paragraph, we're even going to make it fancier, and look italics, fancier still, we're going to turn it into a style so we can reuse it through a really long document, over and over again. When you press Enter to start the next paragraph, its first line will be indented. In Indents and Spacing section click the drop down arrow in Special field. Locate the Paragraph group and click the arrow at right bottom corner. From Paragraph dialog, select First Line. Select the paragraph or place the cursor anywhere within the paragraph. Microsoft Word displays a popup-menu select Paragraph menu item from it to open the Paragraph dialog. 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. To indent the first line of a paragraph, put your cursor at the beginning of the paragraph and press the tab key. From Modify Style dialog select New documents based on this template to apply the indentation to ALL the Word documents which are using this template.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |