I implemented the PDF version of the Excel sheet in the VBA, but some pages are not consistent in size.
The reason seems to be the same as the link below.
When you create a PDF from Excel, the page size varies
It seems that the output PDF is opened in Acrobat and re-PDFed in PDFPrinter, but I would like to do all of this on the VBA.
Even if it is not the above proposal, if the PDF size can be unified, there will be no problem.
Thank you for your cooperation.
vba pdf
Excel print settings are available on each sheet.I think it was reflected only in the current sheet even if I selected more than one sheet.Therefore, please set the print settings for each sheet, then select multiple sheets to print.
Convenient and easy-to-use components are recommended, and you can easily convert Excel documents into PDFs through the free Spire.XLS for .NET.
See this article for detailed instructions:
https://www.e-iceblue.com/Tutorials/Spire.XLS/Spire.XLS-Program-Guide/Conversion/Convert-worksheet-to-PDF-in-C-VB.NET.html
© 2024 OneMinuteCode. All rights reserved.