+ Reply to Thread
Results 1 to 8 of 8

Macro to encrypt each PDF inside a folder

  1. #1
    Registered User
    Join Date
    04-03-2022
    Location
    London, England
    MS-Off Ver
    Ms. Office 2013
    Posts
    79

    Question Macro to encrypt each PDF inside a folder

    Hi all, I hope you have a good day.

    I'm confused as to how to create a macro that could automatically encrypt all and each PDF in a choose-able folder with the same password. For example, there are 500 files in the folder that could be picked, each of them would be locked with Password in cell C4.

    I think the choose-able folder can be done with msoFileDialogFolderPicker?

    Can anyone help me on this? Thank you!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Macro to encrypt each PDF inside a folder

    Just a simple sample to get files from specific folder.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-03-2022
    Location
    London, England
    MS-Off Ver
    Ms. Office 2013
    Posts
    79

    Re: Macro to encrypt each PDF inside a folder

    Hi, jindon! Thank you so much for answering!

    What about the code to encrypt the pdf files? Is there any possibility to create a macro to do just that?

    Thank you!

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Macro to encrypt each PDF inside a folder

    I don't have acrobat product, so can not help you for that.

  5. #5
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2402-17328.20068
    Posts
    1,360

    Re: Macro to encrypt each PDF inside a folder

    Not sure you can do it without paid third party software, another option might be to place the file inside a password protected zip file?
    If things don't change they stay the same

  6. #6
    Registered User
    Join Date
    04-03-2022
    Location
    London, England
    MS-Off Ver
    Ms. Office 2013
    Posts
    79

    Re: Macro to encrypt each PDF inside a folder

    Hi, jindon & CheeseSandwich, thank you for your replies!

    CheeseSandwich, I do have Adobe Acrobat X Pro and PDFCreator though... is it possible to use this?

    Thank you!

  7. #7
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2402-17328.20068
    Posts
    1,360

    Re: Macro to encrypt each PDF inside a folder

    In Acrobat Pro batch processes are called Actions. You'll find them under Tools - Action Wizard.
    Basically, you need to create a new Action, select the input folder, and then add an Encrypt command (under Protection), where you select the security method to be applied, including the password, and then a Save command.

    Run the Action and your files should be protected.

  8. #8
    Registered User
    Join Date
    04-03-2022
    Location
    London, England
    MS-Off Ver
    Ms. Office 2013
    Posts
    79

    Re: Macro to encrypt each PDF inside a folder

    Oh, okay CheeseSandwich, thank you so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Wrong forum, sorry :(
    By nettadecoco in forum Excel General
    Replies: 0
    Last Post: 01-09-2023, 11:37 PM
  2. [SOLVED] Hyperlink all folder inside the main folder
    By misteyoso in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-16-2017, 09:21 PM
  3. Replies: 14
    Last Post: 09-18-2016, 08:13 AM
  4. Replies: 1
    Last Post: 12-08-2015, 06:37 AM
  5. [SOLVED] Macro to open up a .csv file inside each subfolder in a master folder
    By hutch94 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-05-2014, 07:24 PM
  6. Replies: 0
    Last Post: 10-10-2012, 03:51 AM
  7. [SOLVED] Encrypt Macro in a workbook
    By flakedew in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2012, 01:45 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1