Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Enhancement to "Timer" Macro

Posted on 2011-03-18
12
Medium Priority
?
324 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

650 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