![]() |
|
#1
|
|||
|
|||
![]()
I have this code which seems to only change the first cell.
Code:
Function ChangeLogo(wdDoc) Dim ocell As Cell For Each ocell In wdDoc.Range.Cells With ocell.Shading If .BackgroundPatternColor = RGB(51, 51, 153) Then .BackgroundPatternColor = RGB(12, 71, 157) .ForegroundPatternColor = wdColorWhite End If End With Next End Function |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
iiiiifffff | Word VBA | 16 | 06-04-2016 01:47 AM |
Find and Replace multiple table columns | smakdown61 | Word | 1 | 08-28-2014 09:24 PM |
![]() |
bennymc | Word VBA | 1 | 01-27-2014 04:23 PM |
Find - Replace Macro using a table list | mdw | Word | 0 | 08-01-2013 04:36 PM |
![]() |
paulkaye | Word | 4 | 12-06-2011 11:05 PM |