Workbook access control

Skyhook

New Member
Joined
Apr 8, 2002
Messages
38
Hi
Is there a way to have a workbook ask for a password after it has been accessed more than 3 times? If the correct password is entered then the userform will display and if not then the workbook will close. And if so how would you go about doing this.

Thanks in advance
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Yes
Store your workbook open count in some inconspicuous cell and increment it every time the work book is opened. If it >=3 then prompt for the password.
On workbooks such as these, I hide all of my sheets except one which has no use except to display a simple message "macros must be enabled to use this workbook", if the correct password is supplied, the sheets are all unhidden and available for use.
Tom
This message was edited by TsTom on 2002-04-11 11:28
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,979
Members
448,934
Latest member
audette89

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top