View Single Post
 
Old 09-05-2022, 03:45 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,340
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 example:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim r As Long
With Selection
  If .Information(wdWithInTable) = False Then Exit Sub
  With .Tables(1)
    .Rows.Alignment = wdAlignRowCenter
    For r = 1 To .Rows.Count - 1
      If .Cell(r, 1).Range.Characters.First.Font.Italic = True Then
        If .Cell(r + 1, 1).Range.Characters.First.Font.Italic = True Then
          .Cell(r, 1).Borders(wdBorderBottom).LineStyle = wdLineStyleNone
        End If
      End If
    Next
  End With
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote