Dual password

C

Cary

Is there a way to create a dual password protected Excel or Word file that if
opened with password “A†would just open normally but if opened with password
“B†would silently run a script file in the background that would delete a
list of directories off the hard drive and then silently in the background
empty the recycle bin?

If so what would the script file to perform the task look like?
 
J

Jay Freedman

No, not with the built-in password protection mechanism -- it only
handles one password at a time. And VBA has no way to find out what
password was supplied to open the document.

Besides that, I'd consider any macro that silently deletes directories
to be a virus.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top