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 for Programming
 LabTalk Forum
 smooth columns on multiple sheets
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ticofiz

United Kingdom
21 Posts

Posted - 10/31/2011 :  4:14:22 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 8.5.1
Windows 7 Ultimate 64 bit

Hello,

I am using this command line "loop(ii,1,wks.ncols) {smooth iy:=$(ii) meth:=sg npts:=5 poly:=2;};" to smooth data from a active workbook. Could you tell me please how can I apply this command on all the sheets from a workbook? The sheets have different names.

Thank you

Penn

China
644 Posts

Posted - 11/01/2011 :  04:00:45 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You can use the page object. For example:

loop(jj, 1, page.nLayers)  // loop over all worksheet in the active workbook
{
	page.active = jj;  // activate the jjth worksheet
	loop(ii,1,wks.ncols) 
	{
		smooth iy:=$(ii) meth:=sg npts:=5 poly:=2;
	}
}


Penn

Edited by - Penn on 11/01/2011 04:01:00 AM
Go to Top of Page

ticofiz

United Kingdom
21 Posts

Posted - 11/01/2011 :  04:08:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you very much!

quote:
Originally posted by Penn

Hi,

You can use the page object. For example:

loop(jj, 1, page.nLayers)  // loop over all worksheet in the active workbook
{
	page.active = jj;  // activate the jjth worksheet
	loop(ii,1,wks.ncols) 
	{
		smooth iy:=$(ii) meth:=sg npts:=5 poly:=2;
	}
}


Penn

Go to Top of Page

karlhammer48

USA
1 Posts

Posted - 11/14/2011 :  7:52:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Cased solved thanks to you Penn

Early Pension Cash Release


Karl Hammer
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