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...