Hi Konrad Loehr,
> How to get the short name of the workbook to create the range?
You can use the long name to define the range. When you need the short name (like for Window command),
you can get it by <range>.name$ . The following sample snippet worked:bk$="1_to_1000_dilution.txt";
range rs = [%(bk$)]1!; //1st sheet
rs.colSel(2,1); //highlight 2nd column in the sheet
bkshortname$=rs.name$;
window -a %(bkshortname$);
worksheet -p 219 Hist;
Hope this helps.
--Hideo Fujii
OriginLab