Consulting

Results 1 to 3 of 3

Thread: Black text with colored background

  1. #1
    VBAX Regular
    Joined
    Jul 2018
    Location
    Blanchard
    Posts
    7
    Location

    Black text with colored background

    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!

  2. #2
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    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
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    VBAX Regular
    Joined
    Jul 2018
    Location
    Blanchard
    Posts
    7
    Location
    Thank you Paul! I know I didn't give much to go on, but what you gave was what I needed. Thanks again!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •