Need a Macro to Encrypt All XLSX files in a folder...

Anonymous
2014-11-19T07:41:20+00:00

Hello All,

I'd like to achieve this option using a macro. I need to go for a macro because, I have a lot of .xlsx files in a folder that has to be encrypted with a password. I searched all over the web and couldn't find one.

I found a macro which protects/unprotects worksheets in a folder. But, I want the recipient to open the excel file with a password.

Please Help... 

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Anonymous
    2014-11-19T13:16:22+00:00

    Worked like charm..Thank you...

     ' Set password

            wbk.Password = strPassword

    this was what i was looking for...

    Was this answer helpful?

    0 comments No comments