How to auto convert to PDF from excel using VBA?

0 votes
asked by about Nuance PDF Converter Professional
edited by

1 Answer

0 votes
answered by (85.3k points)

ExcelFile = ActiveWorkbook.FullName
PDFConv = CreateObject("NuancePDFConverterProfessional8.NuanceConverterProfessional")

'Set the path of the output PDF file
PDFFile = Replace(ExcelFile, ".xlsx", ".pdf")

'Convert the file to PDF
PDFConv.OpenInputFile ExcelFile
PDFConv.SetConvertToPDFFileName PDFFile
PDFConv.ConvertToPDF
PDFConv.CloseInputFile
Set PDFConv = Nothing

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...