Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88066

VBA Setting Chart Source Data with Variables?

$
0
0

Trying to set source data using two sections of data for a chart using variables. When I use just one of the variables it selects the right area for the respective variable. However, when I put both in it causes one of the selections to be different (Larger). Is there a way to do it so it selects both areas as if I was selecting them individually.

Here is the code with both the variables.

ActiveChart.SetSourceData Source:=Range( _
 X, Y)

Viewing all articles
Browse latest Browse all 88066

Trending Articles



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