Artisez
Member
I have a workbook that can have approx. 20 30 worksheets. I usually have to save each individually as a PDF. I have created a VBA to save all the sheets in a workbook as individual PDFs with each sheets name. But I am not great with VBA. I need to add the workbook name also. I would appreciate any help. Here is what I have:
>>> use code - tags <<<
>>> use code - tags <<<
Code:
Sub SaveEachWorksheetAsPdfFile()
Dim Worksheet As Worksheet
For Each Worksheet In Worksheets
Worksheet.ExportAsFixedFormat xlTypePDF, "C:\Art\" & filename & Worksheet.Name & ".pdf"
Next Worksheet
End Sub
Attachments
Last edited by a moderator: