PDA

View Full Version : how to indent all paragraph numbers in word document to left without indenting text



ramap
08-28-2017, 08:11 AM
I would like to indent all paragraph numbers in word 2016 document to leftmost position WITHOUT indenting text associated with those paragraphs. need VBA code for the same. when I indent paragraphs to left, associated text is also moving to left along with it. tried using "first line indent" ruler, but it requires fixed inches to specified. I would like to move it to leftmost position regardless of the current position of the paragraph numbers. Is this possible?
With Selection.ParagraphFormat
.SpaceBeforeAuto = False
.SpaceAfterAuto = False
.FirstLineIndent = InchesToPoints(0)
End With

heedaf
08-28-2017, 11:24 AM
If you are using the styles you should be able set what you want in that style. I'm not sure you can do what you are trying to do since the text is based on the distance from the number. You could get the current value of .FirstLineIndent and calculate the distance needed and then set it to the new value.

macropod
08-28-2017, 04:39 PM
Are these numbers typed, or automatic?