View Single Post
 
Old 06-25-2016, 07:17 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,518
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

For that, you could try something like:
Code:
Sub Demo()
With Selection.Paragraphs(1).Range.Characters(1).Previous.Paragraphs(1).Range
  If .InlineShapes.Count = 0 Then
    Selection.ParagraphFormat.LeftIndent = InchesToPoints(1.4)      ' Set the value of the indent
    Selection.InlineShapes.AddHorizontalLineStandard                ' Add the line
  ElseIf .InlineShapes(1).Type <> wdInlineShapeHorizontalLine Then
    Selection.ParagraphFormat.LeftIndent = InchesToPoints(1.4)      ' Set the value of the indent
    Selection.InlineShapes.AddHorizontalLineStandard                ' Add the line
  End If
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote