View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
John Wilson John Wilson is offline
external usenet poster
 
Posts: 550
Default Password Protect Workbook via code

Couldn't seem to find this in Google.
Hopefully, it's possible.....

Scenario:
Macros are enabled
Someone other than an authorized user has opened the workbook.
One critical sheet of the workbook is copied to a newly created workbook

(all of the above I can accomplish)
I want to save that newly created workbook with a "Password to Open"
I'll then close that workbook and delete the original one completely.

Understood that it's futile to attempt this but for my particular
audience
it should work.

Thanks,
John