Hi, I wish to protect one of my designs so that a workbook will not open after a trial period has expired, or even better will delete itself completely after a particular date.
Is there any way to do this?
thanks.
dan.
Hi, I wish to protect one of my designs so that a workbook will not open after a trial period has expired, or even better will delete itself completely after a particular date.
Is there any way to do this?
thanks.
dan.
Hi Dan
Personally, I would say this method is a bad idea as a user can hold shift on load which stops any macros from running.
If you really want someone to try something, I'd do it a different way (perhaps a reduced version?)
But as you asked - the attached should do what you need.
If the date in A1 is less than todays date, it is deleted. You can also change the code to a specific date.
delete book.xlsm
use this
there should be one sheet after delete in the workbookPlease Login or Register to view this content.
Last edited by Kamboj; 11-04-2014 at 01:35 AM.
Hi, Kamboj,
Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.
Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
(This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7).
Ciao,
Hiolger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks