Solved

Enhancement to "Timer" Macro

Posted on 2011-03-18
12
309 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:Bright01
  • 8
  • 4
12 Comments
 
LVL 4

Expert Comment

by:rowanscott
ID: 35164710
Your  sample is password protected.

Rowan
0
 

Author Comment

by:Bright01
ID: 35169335
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
 

Author Comment

by:Bright01
ID: 35176944
Rowan,

Let me know if you need anything else.

B.

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Bright01
ID: 35189251
Rowan,

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

Thank you,

B.
0
 
LVL 4

Expert Comment

by:rowanscott
ID: 35193577
Don,t abandon it yet. its a tricky one but worth while.
Rowan
0
 

Author Comment

by:Bright01
ID: 35194639
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
 

Author Comment

by:Bright01
ID: 35207660
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
 
LVL 4

Expert Comment

by:rowanscott
ID: 35213186
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
 

Author Comment

by:Bright01
ID: 35213482
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
 

Author Comment

by:Bright01
ID: 35231655
Any update?  Much thanks,

B.
0
 
LVL 4

Accepted Solution

by:
rowanscott earned 500 total points
ID: 35240245
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
 

Author Closing Comment

by:Bright01
ID: 35240362
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question