|
Re: Excel and VBA, how to protect?
You could look at the Autoexec automation for Excel.
You can include a module called (I think) Autoexec in the VBA for the worksheet. This runs as soon as the worksheet opens. Then use the code above (or an approximation of it to suit your needs) to test the date. If the date is out of the allowed bounds you simply close the sheet.
Hopefully your clients won't necessarily be able to bypass this very easily.
|