Hi freefeynman123,
> it doesn't print any mistakes
The semicolon(;) at the end of the "for" command line causes no loop.
Anyway, the following code should work:ncol = wks.ncols;
for (ii = 2; ii<= ncol; ii +=1) {
wks.col$(ii).name$="b$(ii-1)";
}
Please try.
--Hideo Fujii
OriginLab
P.S. By the way, you can change the column names in enumerated way from the user interface
by double-clicking the first column to show Column Properties dialog, enter the prefix ("b" in
your case) at the Short(or Long) Name, select "Enumerate Labels", choose "Enumerate" at the
Short(or Long) Name dropdown.