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
 Delete rows for multiple worksheets.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

OriginUser9

Latvia
8 Posts

Posted - 04/19/2022 :  06:25:12 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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?

aplotnikov

Germany
169 Posts

Posted - 04/19/2022 :  08:10:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
%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?
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