Consulting

Results 1 to 2 of 2

Thread: Format Chart Data Lablel based on Target Value/Goal

  1. #1
    VBAX Regular
    Joined
    Mar 2009
    Location
    Webster NY
    Posts
    16
    Location

    Format Chart Data Lablel based on Target Value/Goal

    Hi all, I'm trying to figure out how to format the data label font color using VBA on a stacking Bar Graph, The format is based on the data value to a predetermined goal. ie if the goal is 50 hours and the actuals are 60 hours the font color turns red else it's green. This is beyond my present capabilities to figure out. Thanks in advance

  2. #2
    VBAX Regular
    Joined
    Mar 2009
    Location
    Webster NY
    Posts
    16
    Location
    I have part of it figured out but I'm having trouble figuring out hoe to loop through all the data labels of the stacking bar chart to compair against target/Goal

    [VBA] With ActiveChart.SeriesCollection(1).Points(2)
    .DataLabel.Font.ColorIndex = 5
    End With[/VBA]

Posting Permissions

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