Chart's Value cannot be changed automatically

G

Guest

Guest
ActiveChart.PlotArea.Select
ActiveChart.SeriesCollection(1).XValues = "='"& xxx &"'!R"& yyy &"C4:R"& zzz &"C4"

If I try to run the Macro, it comes out with this error msg :
Error '1004'
The XValues-Properties from the Series Objects cannot be fixed (sorry translated).

All the xxx,yyy and zzz's are variable and they work well normally. yyy usually start with a value of about 250 (row 250) and end with a zzz value of about 700 (row 700). the problem only surfaces when yyy has a value of 2 or 3 (row 2 or 3) and zzz with value less than 200.

How can I change this vba programm? this problem can only be solved manually.

thanks in advance
 

Excel Facts

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

Forum statistics

Threads
1,214,643
Messages
6,120,707
Members
448,981
Latest member
recon11bucks

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