Is it possible to set a string variable equal to the value in several cells?
I want this to work...
Q1Titles = Range("Q1Titles").Value
Q2Titles = Range("Q2Titles").Value
Q3Titles = Range("Q3Titles").Value
Q4Titles = Range("Q4Titles").Value
Where Q1Titles is a range of 3 cells saying Jan, Feb, Mar. Q2Titles is a range of 6 cells saying Jan, Feb, Mar, Apr, May, Jun. So on and so forth.
I am using these variables to set the titles for the xaxis in a chart like so...
ActiveChart.SeriesCollection(1).XValues = Q1Titles
I have tried simply setting the xvalues equal to the range I want but this does not work because the workbook with these ranges is not active while the chart is being built.
I want this to work...
Q1Titles = Range("Q1Titles").Value
Q2Titles = Range("Q2Titles").Value
Q3Titles = Range("Q3Titles").Value
Q4Titles = Range("Q4Titles").Value
Where Q1Titles is a range of 3 cells saying Jan, Feb, Mar. Q2Titles is a range of 6 cells saying Jan, Feb, Mar, Apr, May, Jun. So on and so forth.
I am using these variables to set the titles for the xaxis in a chart like so...
ActiveChart.SeriesCollection(1).XValues = Q1Titles
I have tried simply setting the xvalues equal to the range I want but this does not work because the workbook with these ranges is not active while the chart is being built.