Sub
Makro1()
ActiveSheet.ChartObjects(
"Diagramm 2"
).Activate
Dim
i
As
Double
For
i = 10
To
34
Step
2
For
j = 1
To
13
j = j + 1
If
Cells(i, 1) > 0
Then
ActiveChart.FullSeriesCollection(1).Points(j).
Select
With
Selection.Format.Fill
.Visible = msoTrue
.ForeColor.RGB = RGB(255, 0, 0)
.Transparency = 0
.Solid
End
With
End
If
If
Cells(i, 1) = 0
Then
ActiveChart.FullSeriesCollection(1).Points(j).
Select
With
Selection.Format.Fill
.Visible = msoTrue
.ForeColor.RGB = RGB(146, 280, 80)
.Transparency = 0
.Solid
End
With
End
If
If
Cells(i, 1) < 0
Then
ActiveChart.FullSeriesCollection(1).Points(j).
Select
With
Selection.Format.Fill
.Visible = msoTrue
.ForeColor.RGB = RGB(84, 130, 53)
.Transparency = 0
.Solid
End
With
End
If
If
Cells(i, 1) =
"(Leer)"
Then
ActiveChart.FullSeriesCollection(1).Points(j).
Select
With
Selection.Format.Fill
.Visible = msoTrue
.ForeColor.RGB = RGB(89, 89, 89)
.Transparency = 0
.Solid
End
With
End
If
Next
i
End
Sub