Hi all,
I have a chart that is linked to dataset B (20 rows, 4 columns), that is in turn linked to the larger dataset A (252 rows). I have written a simple macro (see below) that increases the topleft value of dataset B with 1, which has an effect similar to scrolling through dataset A (if that makes sense). The effect would be a dynamic chart, showing the movement of the data in dataset A.
When I manually increase the topleft value of dataset B, the values are updated and the chart also updates. However, when I try doing it using the macro, the chart will not update. Note that I have added a 'deceleration' mechanism to the code as well.
Any ideas?
Thanks in advance.
Albert
Code snip:
For x = 1 To 252
'Decelerator
For y = 1 To 5000000
Next y
Range("g2").Value = Range("g2") + 1
Application.Calculate
Next x
I have a chart that is linked to dataset B (20 rows, 4 columns), that is in turn linked to the larger dataset A (252 rows). I have written a simple macro (see below) that increases the topleft value of dataset B with 1, which has an effect similar to scrolling through dataset A (if that makes sense). The effect would be a dynamic chart, showing the movement of the data in dataset A.
When I manually increase the topleft value of dataset B, the values are updated and the chart also updates. However, when I try doing it using the macro, the chart will not update. Note that I have added a 'deceleration' mechanism to the code as well.
Any ideas?
Thanks in advance.
Albert
Code snip:
For x = 1 To 252
'Decelerator
For y = 1 To 5000000
Next y
Range("g2").Value = Range("g2") + 1
Application.Calculate
Next x