我不确定你的具体情况是什么,但我得到了下面的代码来处理下面的电子表格。
Sub TestScatter()
Dim p As Point
Dim i As Long
ActiveSheet.ChartObjects("Chart 1").Activate
i = 1
For Each p In ActiveChart.SeriesCollection(1).Points
i = i + 1
p.MarkerSize = Cells(i, 4)
Select Case Cells(i, 5)
Case "Circle"
p.MarkerStyle = xlMarkerStyleCircle
Case "Square"
p.MarkerStyle = xlMarkerStyleSquare
Case "Triangle"
p.MarkerStyle = xlMarkerStyleTriangle
Case Else
p.MarkerStyle = xlmarkerstyledefault
End Select
Select Case Cells(i, 6)
Case "Red"
p.MarkerBackgroundColor = RGB(255, 0, 0)
p.MarkerForegroundColor = RGB(255, 0, 0)
Case "Green"
p.MarkerBackgroundColor = RGB(0, 255, 0)
p.MarkerForegroundColor = RGB(0, 255, 0)
Case "Blue"
p.MarkerBackgroundColor = RGB(0, 0, 255)
p.MarkerForegroundColor = RGB(0, 0, 255)
Case Else
p.MarkerBackgroundColor = RGB(0, 0, 0)
p.MarkerForegroundColor = RGB(0, 0, 0)
End Select
Next p
End Sub