Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() This code does the trick for me (it is from an earlier posting). Just select the chart before you run the code. Sub ColorColumns() Dim vntValues As Variant Dim intSeries As Integer Dim intPoint As Integer With ActiveChart For intSeries = 1 To .SeriesCollection.Count With .SeriesCollection(intSeries) vntValues = .Values For intPoint = 1 To .Points.Count If vntValues(intPoint) < 1 Then ' red column ..Points(intPoint).Interior.Color = _ RGB(255, 0, 0) ElseIf vntValues(intPoint) 0 Then ' green column ..Points(intPoint).Interior.Color = _ RGB(0, 255, 0) End If Next End With Next End With End Sub -- czywrg ------------------------------------------------------------------------ czywrg's Profile: http://www.excelforum.com/member.php...o&userid=31051 View this thread: http://www.excelforum.com/showthread...hreadid=509752 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing Tab Colours | Excel Worksheet Functions | |||
Changing colours in chart | Charts and Charting in Excel | |||
multiple or changing colours in a data table on an excel chart fo. | Charts and Charting in Excel | |||
changing colours on stacked bar chart | Excel Programming | |||
Changing Colours on Worksheet | Excel Programming |