wheelie pete
New Member
- Joined
- Mar 1, 2019
- Messages
- 6
I'm trying to calculate the slope of 5 points in a rather large data set.
I used this bit of code:
Set xl = Range(1, 2, 3, 4, 5)
Set yl = Range(Cells(row - 5, col - 5), Cells(row, col - 5))
slopel = Application.WorksheetFunction.slope(xl, yl)
I'm trying to the set the range as just numbers, and not as cells. It doesnt like the first line.
Any ideas how to change it?
Thanks! Pete
I used this bit of code:
Set xl = Range(1, 2, 3, 4, 5)
Set yl = Range(Cells(row - 5, col - 5), Cells(row, col - 5))
slopel = Application.WorksheetFunction.slope(xl, yl)
I'm trying to the set the range as just numbers, and not as cells. It doesnt like the first line.
Any ideas how to change it?
Thanks! Pete