Av8tordude
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 1,075
- Office Version
- 2019
- Platform
- Windows
Is there a way to make bar graph above 0 green and below 0 red in vba?
VBA Code:
With MyChart
.HasTitle = True
.HasLegend = False
.ChartTitle.Text = Range("B1")
.Axes(xlValue).TickLabels.NumberFormat = "$#,##0;[Red]-$#,##0"
.Axes(xlCategory).TickLabelPosition = xlTickLabelPositionLow
.ChartGroups(1).GapWidth = 150
Wks.ChartObjects(1).Chart.ShowAllFieldButtons = False
End With