Date Triggered Decay

JohnL11935

New Member
Joined
Sep 13, 2003
Messages
4
I build hospital finance models that are distributed among various users, both within and without my local office. The models contain multiple worksheets with names that vary depending upon the topic. I've recently discovered the models are being distributed to and used by unauthorized staff and consultants.

I would like to develop a way of whenever the model is opened, say 60 days past a predetermined date, that a macro will automatically run that will delete the most pertinent worksheets and then save the file so it is no longer usable.

My thoughts were to place in an out of the way cell (on each worksheet if necessary) an 'if statement' using something along the lines of =IF(TODAY()-Update_Date>60,"Run Macro","Wait") Then have the results of the formula start the macro.

First of all, is the idea of a "time decay" a viable means of limiting access to my models?

I understand the model would need to be being read off of some writable medium in order for this to work (no CD/DVD). I am also wondering if someone simply has to have their security setting set high enough that the macro would be unable to run.

If you believe this idea won't work can you suggest some alternative security measure? I know 'Excel' and 'Secure' don't usually belong in the same sentence but I would like to at least make it as difficult as possible for them. I could also place these 'if statements' on a password protected sheet for some extra added frustration.

If you believe this idea would help can you get me started on the code necessary? I've been referencing Walkenbach's Excel 2000 Power Programming with VBA but the extent of my experience is strictly limited to recording macros.

Thanks.


.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,215,050
Messages
6,122,868
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top