
- #EXCEL TO CONVERTER PDF HOW TO#
- #EXCEL TO CONVERTER PDF PDF#
#EXCEL TO CONVERTER PDF PDF#
In some cases, you may want to convert each worksheet in the workbook to separate PDF files, if there are lots of sheets in your workbook, the below VBA code can help you to save each worksheet as a PDF file at once.ġ. Then click OK to start converting, when all the specified Excel files have been converted to the PDF files, you can go to the specified folder to preview the converted result, see screenshots:Ĭonvert multiple worksheets from a workbook to separate PDF files with VBA code
The directory structure of the file can be retained by checking the The directory structure of the file is preserved when converted box ĥ. If you want to keep the modified date of original files, please check the Keep modified date of original files box. If you want to remove the original files after converting, please check the Delete source files after conversion box. If the workbooks in the subfolders needed to be converted as well, please check the Include subfolders when adding folders check box. If you have Kutools for Excel, with its Format Converter utility, you can quickly convert multiple workbooks to PDF files at once. And then, clik OK, after finishing the conversion, you can go to the specified folder to preview the converted result, see screenshots:Ĭonvert multiple workbooks to PDF files with a powerful feature Then,click OK, another window is popped out, please select a folder path where you want to output the new PDF files, see screenshot:ĥ. Then, press F5 key to run this code, and a window will be displayed, please select a folder which contains the workbooks that you want to convert, see screenshot:Ĥ. XWbk.ExportAsFixedFormat Type:=xlTypePDF, Filename:=xRPath & xbwname & ".pdf"ģ. Xbwname = Replace(xStrFile1, ".xlsm", "_pdf") Xbwname = Replace(xStrFile1, ".xlsx", "_pdf") Xbwname = Replace(xStrFile1, ".xls", "_pdf") Set xWbk = Workbooks.Open(Filename:=strPath & xStrFile1)
Title = "Please select a destination folder to save the converted files:" Set xRFD = Application.FileDialog(msoFileDialogFolderPicker) Title = "Please select the folder contains the Excel files you want to convert:" Set xSFD = Application.FileDialog(msoFileDialogFolderPicker) VBA code: Convert multiple workbooks to PDF files at once Sub ExcelSaveAsPDF() Click Insert > Module, and paste the following code in the Module Window. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.Ģ. If there are hundreds of Excel files need to be converted, the above method will be troublesome, here, I will talk about a VBA code for converting multiple workbooks to PDF files at once, please do with the following steps:ġ. Tips: If you have multiple workbooks need to be converted, please apply above steps to save the workbooks to PDF files one by one.Ĭonvert multiple workbooks to PDF files with VBA code at once And then click OK > Save, this whole workbook has been saved as PDF file format. Then, in the popped out Options dialog box, check Entire workbook, see screenshot:Ĥ.
Click File > Save As, and in the Save As dialog box, please specify a folder for saving the new file, then select PDF from the Save as type drop down list, and then, click Options button, see screenshot:ģ. Launch you workbook that you want to convert to PDF format.Ģ. Normally, the Save As feature in Excel can help you to save the entire workbook to a PDF file, please do as this:ġ.
Convert multiple worksheets from a workbook to separate PDF files with a handy featureĬonvert multiple workbooks to PDF files with Save As function one by one. Convert multiple worksheets from a workbook to separate PDF files with VBA code. Convert multiple workbooks to PDF files with a powerful feature. Convert multiple workbooks to PDF files with VBA code at once. Convert multiple workbooks to PDF files with Save As function one by one. But how do you convert multiple workbooks to PDF files at the same time in Excel? In Excel, we can save an Excel file as PDF file by using Save As function. Sometime, you need to convert your Excel files to PDF files, so that they cannot be modified by others. #EXCEL TO CONVERTER PDF HOW TO#
How to convert multiple workbooks or worksheets to PDF files at once in Excel?