This is sort of a dirty solution but you place your x data in the array starting at f9:0 and the corrosponding y data in F10:0. Then you place the number of data points in N7:1. Call the routine and it returns A in f11:12 and B in F11:16. Use the equation y = A + Bx for your curve fitting.
I have uploaded a file but have not tested it but you should see how it works if I made a mistake.
Lanny