
- How to open password protected zip files using excel vba how to#
- How to open password protected zip files using excel vba pdf#
PDFprinterName = PDFdevices.GetPrinterByIndex ( 0 ) 'Direct Printer to PDFcreator For Each Prt In Printers
How to open password protected zip files using excel vba pdf#
'Get the name of the PDF printer Set PDFdevices = PDF.GetPDFCreatorPrinters

'On Error GoTo Err_Infos 'Keep the current printer Optional bAllowEdit As Boolean ) Dim PDF As New PdfCreatorObjĭim PDFdevices As PDFCreator_COM.Printersĭim PDFprinterName As String Dim PDFCreatorQueue As PDFCreator_COM.Queue Sub PrintToPDFCreator (sPDFFullPath As String, _ PDFCreator V3.0.2 (not not forget to include "PDFCreator_COM" to your project Here you will find product of my search and developpment, hoping it will help someone in the future
How to open password protected zip files using excel vba how to#
I wasn't able to find easily how to create a protected PDF with Access so. Graham Mayor (Microsoft Word MVP 2002-2019) For more Word tips and downloads visit my web site "Re-installing PDF Creator may restore normal working." "or its spooler blocked by AV software." & vbCr & vbCr & _ "This may be an indication that the PDF application has become corrupted, " & _ MsgBox "Unable to initialize PDFCreator." & vbCr & vbCr & _ 'Wait until PDF creator is finished then release the objects 'Wait until the print job has entered the print queue cOption("PDFUserPasswordString") = sUserPass 'To force a user to enter a password before opening cOption("PDFDisallowModif圜ontents") = iEdit cOption("PDFOwnerPasswordString") = sMasterPass 'The following are required to set security of any kind cStart("/NoProcessingAtStartup") = False Then Set pdfjob = CreateObject("PDFCreator.clsPDFCreator") If bNoPrint Then iPrint = 1 Else iPrint = 0 Sub PrintToPDFCreator(sPDFName As String, _ĭim iCopy As Integer, iPrint As Integer, iEdit As Integer Having done that you can call the following macro to create the PDF with your preferred security options. Don't change the name of the Printer 'Driver' The installer will try and install all sorts of other dross that you don't need (or want) so make sure that you check the various dialogs and only install the basic PDF Creator application. Personally I prefer the earlier version 1.7.3, which is still available from You can however do it with the open source PDFCreator.


As Doug has indicated the Office PDF option does not include an option for password protection.
