This is probably a stupid question but I only recently started working with VBA. I want to plot a graph. My problem is selecting the range. At the moment I have 29 rows, but this will constantly be changing. I will always have two columns but the rows of my data set will not be constant. How can I change my range selection to update based on a cell value? I can probably use count to count the number of rows, but I'm not sure how to specify a range based on a cell value
ActiveSheet.Shapes.AddChart2(201, xlColumnClustered).Select
ActiveChart.SetSourceData Source:=Range("I1:J29")