![]() |
|
#1
|
||||
|
||||
![]()
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] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PowerPoint macro to change words between quotes to italic needed | KarenK13 | PowerPoint | 9 | 01-12-2020 12:59 PM |
![]() |
TartanNeil | Word Tables | 2 | 04-13-2019 04:58 AM |
![]() |
garryjunada | Word Tables | 2 | 07-16-2018 12:51 AM |
![]() |
otuatail | Excel | 1 | 08-12-2016 05:25 AM |
![]() |
tenpaiman | Word | 2 | 08-08-2012 07:20 PM |