PC Review


Reply
Thread Tools Rate Thread

Destroy VBA code within a macro

 
 
OMER
Guest
Posts: n/a
 
      24th Nov 2009
Hello
I wonder if somebody know a way to delete some macros/code from within a
macro when a trial period has expired, so that the VBAProject is useless
after that period. I already have the trial period implemented, but want to
enforce the users to ask for a news version.

Thank you for your help
OMER
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      24th Nov 2009
OMER

See Chip Pearson's site for a timebomb workbook.

http://www.cpearson.com/excel/workbooktimebomb.aspx

Read carefully the caveats at the beginning and alternatives to VBA


Gord Dibben MS Excel MVP

On Tue, 24 Nov 2009 10:28:02 -0800, OMER <(E-Mail Removed)>
wrote:

>Hello
>I wonder if somebody know a way to delete some macros/code from within a
>macro when a trial period has expired, so that the VBAProject is useless
>after that period. I already have the trial period implemented, but want to
>enforce the users to ask for a news version.
>
>Thank you for your help
>OMER


 
Reply With Quote
 
mrkt_rwnd
Guest
Posts: n/a
 
      24th Nov 2009
How about a date check that exits the routine if it is surpassed? You
could also put one in at the workbook open level to close the file the
moment it was opened. You may want to run a modal window/message box
letting them know they can buy it and where. Cheers
 
Reply With Quote
 
OMER
Guest
Posts: n/a
 
      25th Nov 2009
Thank You Gord for the link.
Great ideas there.
Regards,
OMER

"Gord Dibben" wrote:

> OMER
>
> See Chip Pearson's site for a timebomb workbook.
>
> http://www.cpearson.com/excel/workbooktimebomb.aspx
>
> Read carefully the caveats at the beginning and alternatives to VBA
>
>
> Gord Dibben MS Excel MVP
>
> On Tue, 24 Nov 2009 10:28:02 -0800, OMER <(E-Mail Removed)>
> wrote:
>
> >Hello
> >I wonder if somebody know a way to delete some macros/code from within a
> >macro when a trial period has expired, so that the VBAProject is useless
> >after that period. I already have the trial period implemented, but want to
> >enforce the users to ask for a news version.
> >
> >Thank you for your help
> >OMER

>
> .
>

 
Reply With Quote
 
OMER
Guest
Posts: n/a
 
      25th Nov 2009
Thank you mrkt_rwnd.
I have a similar mechanism implemented, but wanted to disable the code
completely.

"mrkt_rwnd" wrote:

> How about a date check that exits the routine if it is surpassed? You
> could also put one in at the workbook open level to close the file the
> moment it was opened. You may want to run a modal window/message box
> letting them know they can buy it and where. Cheers
> .
>

 
Reply With Quote
 
mrkt_rwnd
Guest
Posts: n/a
 
      25th Nov 2009
Try:

http://www.ozgrid.com/VBA/delete-module.htm

http://vbadud.blogspot.com/2007/05/d...using-vba.html

http://support.microsoft.com/kb/172109

http://www.cpearson.com/excel/vbe.aspx

So one module sub would implement one of the routines above on a
separate module, then resave the workbook.

Best, J

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I use code/macro to change code/macro in an existing file? =?Utf-8?B?U2NvdHQgQmVkb3dz?= Microsoft Excel Programming 2 14th Feb 2007 05:50 AM
Destroy command button with a Macro? grasping@straws Microsoft Excel Misc 3 22nd Dec 2004 02:30 PM
How to make VBA code to self-destroy itself? count Microsoft Excel Programming 6 10th Nov 2004 05:11 PM
Inserting a destroy function which destroy a model after few runs Maite Microsoft Excel Misc 1 22nd Apr 2004 02:55 PM
.NET Destroy user code!!! =?Utf-8?B?QmVybmFyZG8=?= Microsoft C# .NET 1 18th Mar 2004 11:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:34 AM.