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
 Any help
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Forint

USA
1 Posts

Posted - 11/07/2023 :  04:28:27 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin 2019b (32-bit)
9.6.5.169
Windows 10

Hello, I am searching for a command/variable to delete the last sheet in a workbook.

I just found __LASTWKS$ which is the last workbook. There has to be the same for the last worksheet.

Hope somebody can help me.

Edited by - Forint on 11/07/2023 8:13:28 PM

ChaoC

USA
165 Posts

Posted - 11/07/2023 :  10:06:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello Forint,

page.active=page.nlayers;
layer -d;

Please see:
https://www.originlab.com/doc/en/LabTalk/ref/Page-obj#Read_and_Set_Number_of_Layers.2FSheets

https://www.originlab.com/doc/en/LabTalk/guide/Worksheet-Basic-Operation#Delete_Worksheet

Best,
Chao
Go to Top of Page

cloakappraiser

USA
1 Posts

Posted - 11/27/2023 :  05:02:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Fantastic, problem solved, thanks for the help! It was just what I was looking for.
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