quote:
Originally posted by AKazak
Great, thank you for suggesting this!
I will create a script and post it here.
int ncols = wks.ncols;
string WorkBookName$ = %H;
string SheetName$ = wks.name$;
for(int iC = 1; iC <= ncols; iC += 1)
{
range TargetColumn = [WorkBookName$]%(SheetName$)!col($(iC));
TargetColumn.type = 2; // https://www.originlab.com/doc/LabTalk/ref/Wks-Col-obj