Set range to the first word in the active document Set Range1 = ActiveDocument.Words(1) Assigning one range to another, so that an action on one will affect the other Set Range2 = Range1 Duplicating a range, but changing one won't affect the other: Set Range2 = Range1.Duplicate
Looping through all the paragraphs and changing the space setting before the paragraph Dim parCount As Paragraph For Each parCount In ActiveDocument.Paragraphs If parCount.SpaceBefore = 12 Then parCount.SpaceBefore = 6 Next parCount
Comments
Post a Comment