T O P I C R E V I E W |
andrewdsto |
Posted - 09/22/2016 : 02:14:14 AM Origin Ver. 2016 Pro and Service Release 2 (Select Help-->About Origin): Operating System: windows 7
Hi What is the command for selecting/highlight a worksheet column by name in labtalk? Is there a simple command?
There are multiple ways by index number eg: wks.colSel(colNum, n) wks.c1, c2, r1, r2
But I cant find anything based on the short name. There are a myriad of commands that operate on columns using the short name, but I just want to select/highlight it.
I can write some simple code to do this (loop through columns comparing the short names until I find the one I want then use the index number to select the column)
But I feel I must be overlooking something simple.
I don't want to do anything with the column other than select it. I have other pieces of existing code that later on will open the worksheet and act on the selected column.
Thanks Andrew
|
2 L A T E S T R E P L I E S (Newest First) |
andrewdsto |
Posted - 09/22/2016 : 02:35:12 AM perfect thanks I knew it would be simple.
|
JokerOne |
Posted - 09/22/2016 : 02:22:38 AM I am not sure, if this is what you are looking for:
wks.colSel(ColNum(put_shortname_of_colum_here))
e.g.:
wks.colSel(ColNum(a))
I agree, that this in the end again relies on the the index, but you can just call it using the short name and no loop is required? |
|
|