You can create the pdf for the second sheet and then add another attachment.
I had to remove the body html line, you will need to replace it in your code.
Forum does not like html tags in replies.
Sub Mail_PDF2()
Dim PDF_To_Mail_1 As String
Dim PDF_To_Mail_2 As String
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With Sheets("CSS")
PDF_To_Mail_1 = .Range("n9").Value & "\" & .Range("N10").Value & ".PDF"
.Range(.Range("N4").Value).ExportAsFixedFormat 0, PDF_To_Mail_1
End With
With Sheets("VSP")
PDF_To_Mail_2 = .Range("AY15").Value & "\" & .Range("AY16").Value & ".PDF"
.Range("AQ17") = PDF_To_Mail_2
.Range(.Range("AY10").Value).ExportAsFixedFormat 0, PDF_To_Mail_2
End With
On Error Resume Next
With OutMail
.To = ActiveSheet.Range("n5")
.CC = ActiveSheet.Range("n6")
.BCC = ""
.Subject = ActiveSheet.Range("n7")
'================Remeoved Line for forum to accept-replace with original line
.Attachments.Add(PDF_To_Mail_1).FullName
.Attachments.Add(PDF_To_Mail_2).FullName
.Display
End With
On Error GoTo 0
Kill PDF_To_Mail_1
Kill PDF_To_Mail_2
Set OutMail = Nothing
Set OutApp = Nothing
End Sub
Bookmarks