Interpolate
Interpolate
Double
'Variable specifications
'Application.Volatile
xSize = xArray.Rows.Count
ySize = xArray.Columns.Count
If (((x >= x1) And (x <= x2)) Or ((x >= x2) And (x <= x1))) Then
'MsgBox "x1=" & x1 & ", y1=" & y1 & ", x2=" & x2 & ", y2=" & y2 &
", x=" & x
End If
Next i
If (((x >= x1) And (x <= x2)) Or ((x >= x2) And (x <= x1))) Then
'MsgBox "x1=" & x1 & ", y1=" & y1 & ", x2=" & x2 & ", y2=" & y2 &
", x=" & x
End If
Next i
End If
End Function