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
 Find & Replace in all worksheets

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
rezashah Posted - 06/22/2009 : 05:34:57 AM
Origin Ver. and Service Release (Select Help-->About Origin): 8.0
Operating System: XP

Hi,

I have a project with many worksheets, which I have imported. Now I recognize that some data points are 0 and I would like to remove them.
So I tried the find/replace function - important seraching for whole word = 0.

Since I have many worksheets I would like to know how I can make this find/replace for all of them at once - and not one by one like now.


Thanks in advance.

Reza
1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 06/23/2009 : 12:01:56 PM
Hi Reza,

You could change zeroes to missing values (is that what you mean by remove?) in all book/sheets using script such as below.

Copy and paste all lines to script window, then highlight all lines and press Enter to execute.

The wreplace X-Function used in this script is same as the dialog that opens from the Worksheet: Replace menu

Easwar
OriginLab


// Loop over all workbooks
doc -e W {
   type Processing book: %(page.name$);
   // Loop over all sheets in current book
   doc -e LW {
   type "  Processing sheet: %(layer.name$)";
   // Replace 0 with missing values in current sheet using wreplace X-Function
   wreplace rng:=!(1:end) type:=num find_value:=0 cond_value:=eq replace_value:=0/0;
   }
}

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