Solved

Enhancement to "Timer" Macro

Posted on 2011-03-18
12
296 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

808 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