Hello guys, I have this code right here which copies each individual sheet and converts it to PDF
This code currently takes each sheet and converts it to individual PDFs. So if I have "Sheet1" and "Sheet2" it will make two pdfs. I'm going to have another tab called "Back-Up" and I would like for the Macro to convert "Sheet11" and "Back-Up" tab and convert it to one PDF and then "Sheet2" and "Back-Up" as one PDF etc.
Is there a way of getting this one?
VBA Code:
Dim Folder_Path As String
With Application.FileDialog(msoFileDialogFolderPicker)
.Title = "Select the Folder Path"
If .Show = -1 Then Folder_Path = .SelectedItems(1)
End With
Dim sh As Worksheet
For Each sh In ActiveWorkbook.Worksheets
sh.ExportAsFixedFormat xlTypePDF, Folder_Path & Application.PathSeparator & sh.Name & ".pdf"
Next
MsgBox "Done"
End Sub
This code currently takes each sheet and converts it to individual PDFs. So if I have "Sheet1" and "Sheet2" it will make two pdfs. I'm going to have another tab called "Back-Up" and I would like for the Macro to convert "Sheet11" and "Back-Up" tab and convert it to one PDF and then "Sheet2" and "Back-Up" as one PDF etc.
Is there a way of getting this one?