PDA

View Full Version : [SOLVED:] Black text with colored background



SamMurr
08-09-2018, 12:03 PM
I need to have some black text with colored background but am at a loss as to how to code this. Have not been able to locate any examples. Any help will be greatly appreciated. Thanks in advance!:yes

macropod
08-09-2018, 03:27 PM
You really haven't given us much to go on. You might try something based on:

Sub Demo()
With Selection
.Font.ColorIndex = wdBlack
.Shading.BackgroundPatternColorIndex = wdBrightGreen
End With
End Sub

SamMurr
08-10-2018, 06:20 AM
Thank you Paul! I know I didn't give much to go on, but what you gave was what I needed. Thanks again!