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
 deleting a workbook Sheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kitzbrado

Slovenia
Posts

Posted - 08/04/2008 :  03:41:18 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello

Can you please tell me how I can delete/create a whole Sheet in a workbook?

I know how I can manipulate different columns in different sheets but I didn't find a way to delete or create a single sheet.

Thank you.

Deanna

China
Posts

Posted - 08/04/2008 :  04:23:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Kit,

We have an X-Function, newsheet, which provides an convenient way to insert a new worksheet to a workbook. Please see details here:
http://www.originlab.com/www/helponline/Origin8/en/mergedProjects/X-Function/data_manipulation/newsheet.htm

To remove a worksheet, please first make the sheet active and then run the following script command:
layer -d


Deanna
OriginLab Technical Services
Go to Top of Page

adamleewiner

China
Posts

Posted - 08/04/2008 :  05:35:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
SIR:
How to make a sheet active?
How to remove a specified sheet that is not active from a workbook?
quote:
Originally posted by Deanna

Hi Kit,

We have an X-Function, newsheet, which provides an convenient way to insert a new worksheet to a workbook. Please see details here:
http://www.originlab.com/www/helponline/Origin8/en/mergedProjects/X-Function/data_manipulation/newsheet.htm

To remove a worksheet, please first make the sheet active and then run the following script command:
layer -d


Deanna
OriginLab Technical Services



An USTCer always keep trying.
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 08/04/2008 :  09:08:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Before 80SR2, you need to do the following to delete a sheet from any book regardless of active book or not:


win -o book1 {page.active$=sheet2;lay -d}; 


In 80 SR2, we have "fixed" this and now it is very simple:


layer -d name; // del layer/sheet in active page 
layer -d [book]sheet;// general range notation 


CP
Go to Top of Page

kitzbrado

Slovenia
Posts

Posted - 08/05/2008 :  02:09:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you for the answers.
Go to Top of Page

adamleewiner

China
Posts

Posted - 08/05/2008 :  04:18:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you very much.

An USTCer always keep trying.
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