Scatterplot graph not updating while VBA running

Falconander

New Member
Joined
Dec 1, 2016
Messages
1
Simple little program trying to update values on a scatterplot. The values are changing in the data but the scatterplot is not updating until it is finished running.

Thanks for any help,



Sub Bounce1()


Application.ScreenUpdating = True


Range("G5").Value = 2
Range("H5").Value = 9

'ActiveWorkbook.RefreshAll
'DoEvents

ActiveSheet.Calculate
Application.Calculate



Application.Wait (Now + TimeValue("0:00:01"))
Range("G5").Value = 11
Range("H5").Value = 7

'ActiveWorkbook.RefreshAll
'DoEvents

'Calculate

Application.Wait (Now + TimeValue("0:00:01"))
Range("G5").Value = 3
Range("H5").Value = 5

ActiveWorkbook.RefreshAll
DoEvents

'Calculate

Application.Wait (Now + TimeValue("0:00:01"))
Range("G5").Value = 9
Range("H5").Value = 3

ActiveWorkbook.RefreshAll
DoEvents

'Calculate

Application.Wait (Now + TimeValue("0:00:01"))
Range("G5").Value = 5
Range("H5").Value = 2

End Sub
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,214,590
Messages
6,120,421
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top