
For i = 1 To Nstaz
ActiveChart.SeriesCollection.NewSeries
With ActiveChart.SeriesCollection(i)
.Name = Stazione(i)
.XValues = "=Stazioni!$F$2:$H$2"
.Values = "=Stazioni!$B$" i + 1 ":$D$" i + 1
.Interior.Color = RGB(255, 255, 255)
.Select
Selection.MarkerStyle = -4142
.Points(2).DataLabel.Select
Selection.Delete
.Points(3).DataLabel.Select
Selection.Delete
.Points(1).DataLabel.Select
With Selection
.ShowSeriesName = True
.Separator = " "
.Position = xlLabelPositionLeft
If TipoImpianto(i) = "capotronco" Then
.Font.Size = 8
.Font.Bold = True
End If
If TipoImpianto(i) = "stazione" Then
.Font.Size = 7
.Font.Bold = True
End If
If TipoImpianto(i) = "fermata" Then
.Font.Size = 7
End If
End With
End With
Next i |
For i = 1 To Nstaz
ActiveChart.SeriesCollection.NewSeries
With ActiveChart.SeriesCollection(i)
.Name = Stazione(i)
.XValues = "=Stazioni!$F$2:$H$2"
.Values = "=Stazioni!$B$" i + 1 ":$D$" i + 1
.Interior.Color = RGB(255, 255, 255)
.Select
Selection.MarkerStyle = -4142
.Points(2).DataLabel.Select
Selection.Delete
.Points(3).DataLabel.Select
Selection.Delete
.Points(1).DataLabel.Select
With Selection
.ShowSeriesName = True
.Separator = " "
.Position = xlLabelPositionLeft
If TipoImpianto(i) = "capotronco" Then
.Font.Size = 8
.Font.Bold = True
End If
If TipoImpianto(i) = "stazione" Then
.Font.Size = 7
.Font.Bold = True
End If
If TipoImpianto(i) = "fermata" Then
.Font.Size = 7
End If
End With
End With
Next i |
For each serie in ActiveChart.SeriesCollection
With serie
.Name = Stazione(i)
.XValues = "=Stazioni!$F$2:$H$2"
.Values = "=Stazioni!$B$" i + 1 ":$D$" i + 1
.Border.ColorIndex = 1 'nero
.MarkerStyle = -4142
'ecc.
Next |
