Hi,
The problem occurred because the long name of your column is a number, so if you define a range as
[DecayCurves]Sheet1!50;
50 is considered as the column index (i.e. the 50th column) rather than the column with long name 50.
A possible solution would be to extract the string after "!" and use this as the long name, the example script would be:
string str1$=MyResults.Input.R2.C2$;
%M=str1$;
%N=%[%M,>'!'];
and %N is the string register which stores the long name of the column.
Please note that if your column long names are texts, your script shall work fine.
Kathy
Originlab