Newer Code.still bad but better? Dim prevParagraph 'Finally, make sure to use the current as the prev for the next iteration of the loop If List(i).Paragraphs.LeftIndent = 0 And List(i).Paragraphs.Styles "Heading 1" Then Set prevParagraph = List(i - 1).Paragraphs.LeftIndent
Set currentParagraph = List(i).Paragraphs.LeftIndent 'Now, starting with the second item, go through the rest of the list 'Use the first item in the list as the first 'prev' It doesn't even remotely structurally look like it's goin to accomplish my task. 'make the current paragraph = to previous Paraĭl./u/22523394/Indent%20Example%20.docxĪnd I'm very frustrated and lost.this code is terrible and I don't know where to go with it. 'get paragraph indent of the previous paragraph I wouldn't want my entire doc to sequentially indent off of each other If it's not the style I'm using it's probably these. Set nextPara = ActiveDocument.Paragraphs(i + 1)
Set curPara = ActiveDocument.Paragraphs(i) Set prePara = ActiveDocument.Paragraphs(i - 1) Here's my working code for anyone that needs it in the future.