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
 All Forums
 Origin Forum
 Origin Forum
 Apply filter to multiple columns

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Fiogter 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
1   L A T E S T    R E P L I E S    (Newest First)
snowli 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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000