Author |
Topic |
|
thitchen
44 Posts |
Posted - 07/19/2012 : 9:17:42 PM
|
Origin Ver. 8.6 and Service Release 2(Select Help-->About Origin): Operating System: win 7 pro
Hi, I need one line of code to fill a column comment with workbook name:
doc -ef W { int ncols =wks.ncols;
//col(ncols).comment = workbook.name
} How do I write that code, please? Any help is appreciated, thanks! |
|
thitchen
44 Posts |
Posted - 07/19/2012 : 9:57:48 PM
|
col(ncols)[C]$=%H;
this will give short name, but not long name, please help.
quote: Originally posted by thitchen
Origin Ver. 8.6 and Service Release 2(Select Help-->About Origin): Operating System: win 7 pro
Hi, I need one line of code to fill a column comment with workbook name:
doc -ef W { int ncols =wks.ncols;
//col(ncols).comment = workbook.name
} How do I write that code, please? Any help is appreciated, thanks!
|
|
|
thitchen
44 Posts |
Posted - 07/19/2012 : 10:45:39 PM
|
col(Mean)[C]$=%(@WL);
this is not right either
quote: Originally posted by thitchen
col(ncols)[C]$=%H;
this will give short name, but not long name, please help.
quote: Originally posted by thitchen
Origin Ver. 8.6 and Service Release 2(Select Help-->About Origin): Operating System: win 7 pro
Hi, I need one line of code to fill a column comment with workbook name:
doc -ef W { int ncols =wks.ncols;
//col(ncols).comment = workbook.name
} How do I write that code, please? Any help is appreciated, thanks!
|
|
|
thitchen
44 Posts |
Posted - 07/19/2012 : 10:54:10 PM
|
col(Mean)[C]$=page.longname$;
yeah, this works. |
|
|
|
Topic |
|
|
|