Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Excel vba graph xvalue updating but not showing on the graph

$
0
0

I have a line graph in Excel with 4 sets of data for the lines and one set of data for the labels (months in this case (xvalues)). The data and months work fine. When I change to Weeks it also works except the last few labels are missing. If I check the graph data it has selected the correct entries (say A1:A100) but the graph is only showing the first 90 or so.

When you go into the chart data the X axis values are displayed with a tick box next to them.  The data only shows about the first 50 entries, then I see '....' at the end.  What I'm thinking is that the last few entries may not be ticked for some reason?  Is there anyway to check this? 

I am currently using:
   ActiveChart.SeriesCollection(1).XValues = Worksheets("SPC Chart").Range("$A$9:$A$109")
to set the labels (although the range is not hard coded as above, it uses a variable to set the last row)

Anyone got any ideas?  Maybe I need to remove the range completely and then re-add it to ensure all are displayed?  Or something the ensures all entries in the range are 'ticked' to display them?

Thanks
Garry


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>