martinrrrr
New Member
- Joined
- Oct 14, 2015
- Messages
- 6
I recorded a macro to make a chart. I have two ranges that will be used to define the chart Category Axis and the Series Values. The macro recorded the range as:
Range("A1:AF1,A12:AF13").Select
This range will vary depending on the number of columns containing data. The beginning of the range will always be A1 and it will be just row 1 for the first range and the second data range will begin at A12 and end on row 13. What code do I use that will automatically select the variable ranges (at the same time) that will be used to create the chart?
Thanks for any help
Range("A1:AF1,A12:AF13").Select
This range will vary depending on the number of columns containing data. The beginning of the range will always be A1 and it will be just row 1 for the first range and the second data range will begin at A12 and end on row 13. What code do I use that will automatically select the variable ranges (at the same time) that will be used to create the chart?
Thanks for any help