These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How to Create PDF from Excel with Password?

nowhere
Registered: Feb 3 2011
Posts: 4

Hi
 
I have written a macro to convert active sheet to PDF file by using PDF printer. However, I would like to know whether it is possible to set password for the PDF file when doing the conversion?
 
Thanks!

George_Johnson
Online
Expert
Registered: Jul 6 2008
Posts: 1875
You can specify security settings in Distiller by launching it and selecting the "Settings > Security..." menu item. But all files you create will get the same settings.
nowhere
Registered: Feb 3 2011
Posts: 4
thanks for your reply. Could you tell me more details on how to add the code to auto set the password, thanks!
George_Johnson
Online
Expert
Registered: Jul 6 2008
Posts: 1875
No code is needed for the method I mentioned. Have you tried it?
nowhere
Registered: Feb 3 2011
Posts: 4
you mean all the PDF file will have the same password? thanks!
nowhere
Registered: Feb 3 2011
Posts: 4
what i want to set different password for different converted pdf file when doing the conversion. the password can be linked to a password list for different file name. Anyone has idea whether it is doable?