Hello, I am working on a macro to create a chart. When I use the macro recorder and add in the chart data, it seems to use the fixed cell range but what I am actually doing is using ctrl + shift + down to select the entire range which will vary depending on the chart.
How can I get excel to check for the range before adding the chart data? I assume a for loop checking the number of rows would be one way to do it but just want to see if there's any simpler command.
How can I get excel to check for the range before adding the chart data? I assume a for loop checking the number of rows would be one way to do it but just want to see if there's any simpler command.