So your macro now is going to read a value from the registry and decide
whether to continue or exit based on this value. What's to stop the user
from editing the macro and or registry? This is certainly doable but by no
means bullet proof.
Here's some examples but beware that if you plan to write to the local
machine hive then your users will probably need to be administrators.
http://msdn.microsoft.com/library/d...html/678e6992-ddc4-4333-a78c-6415c9ebcc77.asp
http://msdn.microsoft.com/library/d...html/678e6992-ddc4-4333-a78c-6415c9ebcc77.asp
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
:
| Hi
| I don't really understand your reply so, I think my question was not
stated
| clear enough.
| An example of what I am referring to is -
| Once I installed a game that would be inoperable after 30 days.
| After 30 days, I reinstalled the game and it was still inoperable.
| So, the original operation of the game put information in some file
in
| the
| computer to let the reinstalled game know that the 30 days of usage
was
| already used up.
| In other words the game entered a message in a file (other than the game
| file, such as the registry file or one of the ini files) that the 30 days
| have past. Then the reinstalled game sees this message and stops the game
| from working.
| This is what I am trying to do in my Excel spreadsheet Macro procedure.
| Thankyou,
| Ed