FryGirl
Well-known Member
- Joined
- Nov 11, 2008
- Messages
- 1,364
- Office Version
- 365
- 2016
- Platform
- Windows
Hello all,
I can't seem to find this one. I tried the Application.wait, but not sure that will do it.
The routine below runs perfectly fine to draw the plots; however, is there a way to have one loop draw on the chart at a time instead of the entire loop running and then all the plots appear at the same time?
I can't seem to find this one. I tried the Application.wait, but not sure that will do it.
The routine below runs perfectly fine to draw the plots; however, is there a way to have one loop draw on the chart at a time instead of the entire loop running and then all the plots appear at the same time?
VBA Code:
Sub DrawChart()
Dim i As Long
With ActiveChart
.ChartType = xlXYScatter
For i = 1 To 9
With .SeriesCollection.NewSeries
.XValues = Cells(i + 1, 1)
.Values = Cells(i + 1, 2)
End With
Application.Wait (Now + TimeValue("00:00:02"))
Next i
End With
End Sub