Solved

Enhancement to "Timer" Macro

Posted on 2011-03-18
12
277 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
 

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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now