I am working on a simple template for a linear fit. After analyzing the data I get two new sheets. The first one has this statistics about the fit. The second one has the data for the curve fitting. All I need is actually the data from the second sheet (slope, error LCL and UCL). Now I know that one can use something like "3!B" to access data from a different sheet. But how do I do this for the second sheet? I don't really now the origin of the data because I don't know the reference in the table. There must be a way to autoamtically access this fit data right?
So I want to script it I guess. The idea is to use a template, import the data, fit it linear and then use the slope to calculate some stuff. I tried it with the links you gave me but it appears I am to bad at scripting in origin.
So I got it to work by finding out what the "name" of the different values are (e.g. 2!Col(K)). And it works if I use it. But if I use it as a template it will kill the green refresh symbols and wont recalculate after importing even though the "name" of the results didn't change.
I am not quite sure how to use the script in a way that it works. I played around a little bit and did a combination of your two links, but I don't get it to work.