![]() 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. Chn Indent and Spacing >Indentation > Special > First Line. ![]() If so, then pick off the value of the first tab stop to set as the indent for the subsequent paragraphs. Kha hc Microsoft Office 2016 Microsoft Word 2016 Microsoft Word 2016 Tht dng - Indent trong. 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 |