Public Sub Save_Sheets_As_PDF()
Dim saveInFolder As String
Dim replaceSelected As Boolean
Dim ws As Worksheet
Dim excludeSheets As String
excludeSheets = "|abc|def|ghi|" 'The sheet names to exclude delimited by "|"
saveInFolder = ThisWorkbook.Path
If Right(saveInFolder, 1) <> "\" Then saveInFolder = saveInFolder & "\"
With ThisWorkbook
replaceSelected = True
For Each ws In .Worksheets
If InStr(excludeSheets, "|" & ws.Name & "|") = 0 Then
ws.Select replaceSelected
replaceSelected = False
End If
Next
.ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=saveInFolder & "Sheets.pdf", _
Quality:=xlQualityMinimum, IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False
.Worksheets(1).Select True
End With
End Sub