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
Apply filter to multiple columns
New Topic
Reply to Topic
Printer Friendly
Author
Topic
Fiogter
Germany
5 Posts
Posted - 05/24/2018 : 07:41:29 AM
Hi there,
I´d like to apply the same filter to about 100 columns.
How do i do that? (besides of clicking every single column and applying it)
Best regards
snowli
USA
1386 Posts
Posted - 05/24/2018 : 11:27:47 AM
Hello, suppose you have filter set in column 1 already and what to apply to all other columns from 2nd column on, you can run the following script.
for (ii=2; ii<=wks.ncols;ii++)
{
wks.col$(ii).filter=1; //turn on filter
wks.col$(ii).filter$=wks.col1.filter$; //copy col1's filter condition
}
wks.runfilter(); //execute all filters
Thanks, Snow
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Viewer Forum
Origin Forum
Origin Forum for Programming
Forum for Python
LabTalk Forum
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000