T O P I C R E V I E W |
ovince |
Posted - 11/20/2007 : 07:08:18 AM Hi,
I would like to costumise a button. Pressing it, every second column in the multi-column worksheet should be designated az X. So I wrote a small script:
[eveSecColIsX]
for (i=1;i<=100;i++){ if( mod(i,2) != 0) { wks.col$(i).type=4 } }
and saved it as "but_eveSecColIsX.ogs" file. I do the following now:
- view > Toolbars > Button Groups > User Defined - when window is opened I choose one button and press Setting - Under "File Name" I browse to "but_eveSecColIsX.ogs" file which contain the script - under "Section Name" I put [eveSecColIsX] - Under other filds I did not know what to put so I press OK and pull-out the button to Origin
Of course it does not work :) What I did wrong here? The help is poor in explaining how to accomplish this properly so I ask for help
thanks oliver |
3 L A T E S T R E P L I E S (Newest First) |
Mike Buess |
Posted - 11/21/2007 : 08:29:47 AM quote: In manual it is with []...
I disagree although I suppose it could be misconstrued as that.
The Section Name Text Box
Specify the script file section that contains the script for this button in the Section Name text box.
In the script file, section names are enclosed in brackets. For example:
[SectionName]
I interpret that to mean that brackets appear in the script file, not in the Section Name text box.
Mike Buess Origin WebRing Member |
ovince |
Posted - 11/21/2007 : 04:35:18 AM thanks Mike. In manual it is with []... |
Mike Buess |
Posted - 11/20/2007 : 08:54:00 AM When I follow your directions the button works fine.
...I see now. You should omit the brackets [] from the Section name.

Mike Buess Origin WebRing Member
Edited by - Mike Buess on 11/20/2007 09:01:53 AM |