2011-05-23 107 views

回答

1

這可能讓你開始:

Sub Tester() 

    Dim oCht As Excel.Chart, s As Series 
    Dim x As Integer, i As Integer 
    Dim oldColor As Long 

    Set oCht = ActiveSheet.ChartObjects("Chart 1").Chart 
    For x = 1 To oCht.SeriesCollection.Count 
     Set s = oCht.SeriesCollection(x) 
     For i = 1 To s.Points.Count 
      With s.Points(i).Interior 
       oldColor = .Color 
       .Color = vbRed 
       DoEvents 
       Application.Wait Now + TimeSerial(0, 0, 2) 
       .Color = oldColor 
       DoEvents 
      End With 
     Next i 
    Next x 

End Sub 
+0

感謝您的幫助。 – Idr 2011-05-27 04:48:11