Generating password-protected PDF using Excel VBA

  • Thread starter Thread starter man
  • Start date Start date
M

man

Hi all,

I would like to generate password-protected PDF using Excel 2003 VBA.
It can't be manually done using Acrobat Professional becuase I have to
do it a hundred times everyday, and each PDF would have a different
password. My computer has been installed an Acrobat Professional 8.

Anyone knows how to do this? Thanks.

Cyrus
 
If you download and install the free PrimoPDF then you can do things like
this:

Sub test()

Sheets(1).Activate
Application.ActivePrinter = "PrimoPDF on Ne04:"
ActiveWindow.SelectedSheets.PrintOut _
Copies:=1, _
PrintToFile:=True, _
PrToFileName:="C:\mytest.pdf"

End Sub

Not sure about the password.


RBS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

PDF the Excel Report 3
PDF Object Model in Excel 2007 0
Excel Protection 2
Add Page Numbers to PDF 0
Code to Run PDF Maker 1
Automated Print from Excel to PDF 2
Disable Adobe save file prompt 1
Printing to pdf 3

Back
Top