I'm trying to write a code that makes a graph from different parts of the data I have, the issue is that I need a for loop to go through all my lines of data and when the row changes also the range for the next graph
Basically I need the code to check when i is 1 to graph using the range A2:A12 from a different sheet (The table below exists on Sheet1, while the range is from Sheet2)
| Cycle | Starting range | Ending range |
|---|---|---|
| 1 | A2 | A12 |
| 2 | A22 | A32 |
The issue I'm facing is that when I try to define Range("Variable 1:Variable 2") the code doesn't seem to work.
I'm sure I'm thinking about this wrong but I haven't found any solutions online.