• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Create protected PDF using macros

Krishna20

New Member
Hi,

I have created a pdf from Excel using VBA and I found some codes, wherein we can protect the excel sheet. But, can we create a password protected PDF using VBA?

Thanks
Krishna
 
Thanks Lohit,

But I think this doesnt work with adobe. Can we use VBA to manipulate Adobe Acrobat?

Thanks
Krishna
 
Hi Krishna,

Protection of PDF using VBA is possible in 2 ways

1. We can protect the existing PDF which is already there

2. We can create PDF using excel and then Protect

You need adobe professional version to be installed. You have to create SecuritySettings Object, ConversionSettings Object and PDFMakerApp object.

Using the 3 object linked to each other we can lock the pdf. If you would like to know more details please email me solomraj@gmail.com

Thanks and Regards

Raj Mohan
 
Back
Top