The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Code execution in Origin
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Chinmai

India
1 Posts

Posted - 03/10/2024 :  2:39:41 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.0
Operating System: Windows
I have written the following code in the script window.
It is not showing error under execution but I do not see any update in the columns
range rwks1 = [Book1]Sheet1!
for (ii=1; ii<= rwks1.nCols; ii++)
{
range aa = [Book1]Sheet1!Col(ii)[10106:10251];
Col(ii) = aa;
}

Could you please tell where I went wrong?

Thank you

YimingChen

1594 Posts

Posted - 03/11/2024 :  08:29:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Try the script below

range rwks1 = [Book1]Sheet1!;
for (int ii=1; ii<= rwks1!wks.nCols; ii++)
{
	range aa = rwks1!wcol(ii)[10106:10251];
	wcol(ii) = aa;
}


James
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000