![]() |
|
![]() |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
Hi everyone
Looking for macro to change Word 2016 document (example attached) the font color for the text and outside border at same time for entire document. There are other 1 row tables each with different colour for a particular party. In this instance it is the Red Table Row and Text we wish to change. 1 row table Text is red Outside Table Border is Red |
#2
|
||||
|
||||
![]()
Try, for example:
Code:
Sub Demo() Application.ScreenUpdating = False Dim Tbl As Table, Cll As Cell For Each Tbl In ActiveDocument.Tables For Each Cll In Tbl.Range.Cells With Cll If .Range.Font.Color = RGB(255, 0, 0) Then .Range.Font.ColorIndex = wdPink End If If .Borders.OutsideColor = RGB(255, 0, 0) Then .Borders.OutsideColorIndex = wdPink End If End With Next Next Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
Hi Macropod
Many thanks. |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
donaldadams1951 | Word VBA | 6 | 05-31-2018 04:36 PM |
![]() |
epid011 | Word Tables | 2 | 05-15-2017 05:21 PM |
![]() |
vacjan48 | Word | 2 | 11-16-2015 10:12 PM |
Word macro doesn't change font color | Spideriffic | Word VBA | 8 | 11-04-2015 03:47 AM |
![]() |
tinfanide | Word | 4 | 10-27-2012 06:35 AM |