Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: byundtPosted on 2009-09-26 at 17:12:43ID: 25432164
What you are asking for can be dangerous in the hands of inexperienced users. Nonetheless, Dave Brett posted some code that enables a workbook to commit suicide (delete itself and close the workbook) at http://www.vbaexpress.com/ kb/getarti cle.php?kb _id=540
I've repeated the Dave's code below, and added a Workbook_Open sub that runs when the workbook opens (no clicking required). If the file is not stored where it is supposed to be, then the file by the same name in the proper location is deleted as well as the one you just opened.
Brad
Select allOpen in new window