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 for Programming
 LabTalk Forum
 Delete rows for multiple 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
OriginUser9 Posted - 04/19/2022 : 06:25:12 AM
I want to delete rows for multiple worksheets, but with the code I have, I get an error message.

doc -ef W {
  if( || "%H"=="workbook1" || "%H"=="workbook2"||"%H"=="workbook3") {
    doc -e LW { if("%H"=="wks2"){
wdelrows del:=31 skip:=1 start:=1}}};


What is wrong with the code?
1   L A T E S T    R E P L I E S    (Newest First)
aplotnikov Posted - 04/19/2022 : 08:10:20 AM
%H does not contain the sheet name which is accessible via page.active$ variable - I have mentioned it in the previous answer:
if (CompareNoCase(page.active$, "wks2")==0) {...}

Can you post the text of the error message as well?

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