Enhancement to "Timer" Macro

Attached is a macro application that locks or deletes worksheets in a workbook when a certain date is achieved.  I need an additional capability to lock the entire Workbook and place a password for unlock on it with a splashscreen that directs the user to call in to have it unlocked.  This is used to control who is using the workbook.

Thank you,

B.
timer5-application.xlsm
Bright01Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rowanscottCommented:
Your  sample is password protected.

Rowan
0
Bright01Author Commented:
rowanscott,

Very sorry --  "password"; I'm also afraid there is an error in the original code.  However, hopefully you can see what I was trying to accomplish.  

Thank you!

B.
0
Bright01Author Commented:
Rowan,

Let me know if you need anything else.

B.

0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Bright01Author Commented:
Rowan,

Should I abandon or expand this question?  Please advise when you have a moment.

Thank you,

B.
0
rowanscottCommented:
Don,t abandon it yet. its a tricky one but worth while.
Rowan
0
Bright01Author Commented:
Rowan,

I played with the app/macro today and had some input for you.  First, I don't know how to change "THE GLOBAL PASSWORD" on a Workbook; that would be helpful to know so that when the macro changes it, you at least know what you had previously.  Also, you can lock a spreadsheet, delete a spreadsheet or delete a range in a specific spreadsheet.  I'm trying to simply lock the Workbook and then force a splashscreen/form that notifies the user that they must contact me for an updated workbook.

Hope that helps; I know this is tricky.

Best regards,

B.
0
Bright01Author Commented:
Rowan,

I've got to get an answer to this macro by Saturday given some new time constraints.  I think my issue is as simple as how do I lock a workbook when a certain date has been reached?  The code I have now is hard to work with since I don't know what a "GlobalPassword" is and I have the sheets and project locked with different passwords.  Also, the sheet that I want to have this code associated with will be hidden.  Hopefully we can make the change rather easily.

Best regards,

B.
0
rowanscottCommented:
Hi

Im not sure i can do anything within your deadline. Im that damn busy at the mo.

I would point out tho.
1. If the workbook is locked it is locked and no macros will run at all. Ie no splash screen on open etc.
2. Do you want them to have to ring say every month or only once to activate?
3. If its an on going thing you could get the code to generate and store a password (encrypted) on a hidden sheet so that the user could phone you and give a code which you could unencrypt and give a password.
4. This is very low security of course but can be quite successful in some situations. (anybody with the inclination can crack a workbook password.

best regards
0
Bright01Author Commented:
Rowan,

Thanks for the reply; I've gained some time to complete (Sunday PM).  In keeping this very simple; I like your approach of a system generated encrypted password as long as it's easy to unencrypt on my side and I can enable or disable the trigger. It may be far easier to take something you've already got for this kind of thing rather than try to incorporate it into what I sent you.  That too would be fine.

Much thanks in advance,

B.
0
Bright01Author Commented:
Any update?  Much thanks,

B.
0
rowanscottCommented:
Hi

I spent a bit of time doing this. Its a bit natty in a way though anything we can do will be low security as we've already said.

I have put an incorrect registration code in the workbook to make it open with the splash screen. Type in the valid code which i have put on the splash screen for convenience and as you complete the number correctly a green tick appears and the splash screen goes away. save the workbook and next time it opens without the splash screen.

The expiry date his hidden in the registration code.
The reg number is two random digits followed by the expiry date serial backwards then two more check digits calculated from the first 7 digits.

You could have another workbook to generate codes and keep a record of who has what code.

Closing the splash screen without a valid number shuts the workbook.

Could make and impressive demonstration i suppose though not at all foolproof.

Best regards

ProtectedBook.xlsm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bright01Author Commented:
Rowan

Very very imporessive!  I will use this in the future.  It is actually overkill for my current project but I have saved it and again, as I get more sophisticated with my application, I will use it.  Excellent and creative.  I'm going to ask a related question because what I have decided is I need something very simple.

Thanks again and this will get good use.

Best,

B.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.