Chris Macro
Well-known Member
- Joined
- Nov 2, 2011
- Messages
- 1,345
- Office Version
- 365
- Platform
- Windows
I have never coded for graphs using VBA where when I run the macro it changes to the 20 most recent data values collected. If column "A" is going to house my y-values and column "N" is going to house my x-values, what would be the coding to change the graphs data range?
My Idea: I am thinking to get the 20 most recent values I could use a row variable that would equal
This would help me find the last data point entered. I just don't know the proper syntax to manipulate a graph
My Idea: I am thinking to get the 20 most recent values I could use a row variable that would equal
Code:
Cells(Rows.Count, "A").End(xlUp).Row
This would help me find the last data point entered. I just don't know the proper syntax to manipulate a graph