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

kdsaransh

India
89 Posts

Posted - 04/30/2015 :  01:38:29 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

I have a small problem to solve.

I have many workbooks and i want to delete all but not a particular one. How can i do this.

in general, I just want to delete all the workbooks that i had imported.i don't want to delete those workbooks that i had created.

Thanks in advance.

Regards,
Rajesh


Edited by - kdsaransh on 04/30/2015 02:04:36 AM

JRoby

USA
6 Posts

Posted - 04/30/2015 :  4:48:19 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Since imports create metadata storage containing the source filename and your 'created' books presumably do not, this script will delete all workbooks that DO have a stored filename:

doc -e W {
str$ = page.info.system.import.filename$;
if(str.GetLength() > 0) win -cd;
}
Go to Top of Page

kdsaransh

India
89 Posts

Posted - 05/01/2015 :  12:37:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Thanks

Sorry, i think i messed up.

I just want to delete all workbooks but not a particular one.

Thanks
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