• xlColorIndexAutomatic (Excel 03)

    Author
    Topic
    #465839

    I want to set the code to reflect a specific color property instead of automatic. I want to use a light gray instead of the black lines, but I don’t know where to go to grab the color. I want to change .ColorIndex = xColorIndexAutomatic to = RGB(?,?,?) Thanks!

    Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
    With Target.TableRange1.Borders
    .LineStyle = xlContinuous
    .ColorIndex = xlColorIndexAutomatic
    .Weight = xlThin
    End With
    End Sub

    Viewing 5 reply threads
    Author
    Replies
    • #1204696

      Instead of “colorindex” use something like:
      .Color = RGB(200,200,200)

      Steve

    • #1204699

      This is perfect. Thank you. But another quick question, where can I go to get what the numbers are for each category? See I wouldn’t have know that 200 across would give me the gray color I want. Where could I test the color and identify the numbers I need to use? Thank you again!

    • #1204701

      Navigate to:

      Tools | Options | Color (tab) | Modify (button) | Custom (tab)……

      You can input your numbers and keep adjusting them until you find what suit’s.

      Be careful not to unintentionally over-save your color palette in testing….

      Regards
      Nathan

    • #1204705

      Cool. I knew I saw it SOMEWHERE. I just couldn’t remember. Thanks all!

    • #1204786

      You can input your numbers and keep adjusting them until you find what suit’s.

      Or you can select the color from the graphic and the RGB values will be inputted…

      Be careful not to unintentionally over-save your color palette in testing….

      If you do you can use the [Reset] button to put back to the default

      Steve

    • #1205181

      Hi Christine:

      FWIW, since you want grey, you will always get a shade of grey if the RGB values are all the same,

    Viewing 5 reply threads
    Reply To: xlColorIndexAutomatic (Excel 03)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: