I have a function that receives values from a worksheet as a Range variable:
Lets say that Xi has two values, which I can access like:
I want to reverse the two values, and I don't seem to be able to write directly to the variable, so
this can't be done:
How can you reverse the order of these values? They must stay in a Range object.
Thanks
Code:
Public Function Interpolate(x As Double, Xi As Range, Yi As Range)
Lets say that Xi has two values, which I can access like:
Code:
x1 = Xi(1)
x2 = Xi(2)
I want to reverse the two values, and I don't seem to be able to write directly to the variable, so
this can't be done:
Code:
Xi(1) = x2
Xi(2) = x1
How can you reverse the order of these values? They must stay in a Range object.
Thanks