I'm playing around with the concept of restricting a Workbook such that it can only be opened a predetermined number of times. (Not a time frame restriction.)
I've tried the following code but it seems the GetSetting / SaveSetting commands aren't doing what I need them to do.
I was attemtping to have it pull the counter setting from the registry if it was there, if it wasn't there the default of 0 would return and you'd treat that as the first time the workbook was ever opened and set the coutner to 5. Next time through the counter setting should <> zero, thus do the other bit, and so on.
any ideas?
I realize this code doesn't address what happens when the number of times is reached. I'd want that circumstance to thorow up another msgbox announcing your trial is expired, and then close the workbook. Right now I was just trying to figure out how to store the counter value so that I could use it the next time I open the workbook.HTML Code:
I'm still pretty new to all of this.
Any help much appreciated.
Thanks,
Shred
Bookmarks