![]() ![]() ![]() 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. Select the text you want formatted with a hanging indent. Word lists a number of pre-formatted options, but you can also make your own. If you are using a Mac, press Cmd T instead. To change margins, click on the Margins button, found on the Page Layout tab. save your changes after a configured delay or when focus leaves the editor. 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. Right-click the selection and choose Adjust List. UPDATE2: the sample text original I used in shown in this first document: Ctrl+D selects the word at the cursor, or the next occurrence of the current. After creating an indented list, double-click any number in the list to select all of the numbers in the list. 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. ![]() Feel free to edit it obviously if there are any major. If so, then pick off the value of the first tab stop to set as the indent for the subsequent paragraphs. Simply enter the desired number of spaces for indents in the appropriate window and hit OK at the bottom. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |