leal72
10-10-2019, 09:55 AM
Trying to find a way to have the chart update as macro is running. I can see the cells update each time B11 changes but can not get chart to update until marco finishes loop.
Private Sub CommandButton1_Click()
For x = 0 To 44
Range("B11").Value = x
Application.Wait (Now + TimeValue("00:00:03"))
ActiveSheet.ChartObjects("Chart 3").Chart.Refresh
Range("B11").Value = x + 1
Next x
End Sub
Private Sub CommandButton1_Click()
For x = 0 To 44
Range("B11").Value = x
Application.Wait (Now + TimeValue("00:00:03"))
ActiveSheet.ChartObjects("Chart 3").Chart.Refresh
Range("B11").Value = x + 1
Next x
End Sub