password protected excel file

methode2404

New Member
Joined
Sep 3, 2018
Messages
30
Hi,

It is possible to write a macro, for closing password protected excel file, on wrong password entry and no-entry for 10 seconds.

regards
Metin
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
If it is the same workbook and the only one open then when you close the workbook the macro will stop running. You can run a timer for 10 seconds before it closes but I don't see the benefit.
 
Upvote 0
I have a lot of user, they have to entry some data on their xls file and start a macro. This macro copy paste the data to "master'' xls.
This master xls should be closed for all time.
Some users could open (because of curiosity) the master xls. (master xls is password protected)
Master xls should close itself with wrong password entry, or also with no-entry

I have to make sure the master.xls is always closed.
 
Last edited:
Upvote 0
If master.xls is protected how are they opening it?
 
Upvote 0
Have you not hidden and password protected the VBA project?
 
Upvote 0
just for info:

any smart user can break the sheet/vba project password very fast then he can see password contained in vba code
you can try obfuscate vba code and it will be quite a difficult time to recognize the password in the code
maybe any vba master will do that for you

have a nice day
 
Upvote 0
The password for VBA is not so important.
I need the code for : Closing workbook on wrong password entry and closing workbook if there no entry in 10 seconds
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,177
Members
452,615
Latest member
bogeys2birdies

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