Unique Password Protect PDF (by batch), using excel VBA without 3rd Party program

radian89

Board Regular
Joined
Nov 12, 2015
Messages
113
Dears,

i have searching all over, but couldn't find this answer. i need to automate protect PDF each will have unique password. all in googles refer to install 3rd party, but that applied 1 password for all.

then read this

https://www.codeproject.com/Tips/992992/VBA-Excel-Word-to-PDF-Encrypted-Password-Protected

and found error 429 : ActiveX component can't create object. i run this on Excel 2016 32-bit

and if there are any other method would you mind to share? :)

please help
thanks so much.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Please post the code you have in Excel. The code from that site, I think, was designed for WORD.
 
Upvote 0
Not only is the code in the link for Word, not Excel, it also uses a 3rd-party dll. You cannot protect PDFs with MS Office alone.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,148
Members
453,021
Latest member
Justyna P

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