Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Jan 2001
    Location
    Missouri, USA
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Change font of lists (VBA in Word 2000)

    Hopefully this is an easy question that's just not obvious to me on 3 hrs of sleep. <img src=/S/snore.gif border=0 alt=snore width=32 height=15>

    I need to change the font color to red for all text included in bullet or number lists. I found the code below in the Word help file which works fine if I wanted to change the background but I don't know how to get it to change the foreground. How can I do this?

    For Each numpar In ActiveDocument.ListParagraphs
    numpar.Shading.BackgroundPatternColorIndex = wdYellow
    Next numpar

    TIA.....

  2. #2
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Change font of lists (VBA in Word 2000)

    Tekvet,

    One way is:

    For Each numpar In ActiveDocument.ListParagraphs
    numpar.Range.Font.Color = wdColorRed
    Next numpar

    Gary

  3. #3
    Lounger
    Join Date
    Jan 2001
    Location
    Missouri, USA
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Change font of lists (VBA in Word 2000)

    Worked perfectly. Thanks!

Posting Permissions

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