I want to convert certain excel sheets into PDF, the following sheets are "COVER","SCOPE","SUMMARY", "Updated Hours EST" and "RATES".
The following code below is for physically printing the certain sheets in the file. So how would you go about converting the code below into PDF print instead.
Private Sub PrintPDF_Button_Click()
Dim WB As Workbook
Dim arr As Variant
Dim i As Long
Const mySheets As String = "COVER,SCOPE,SUMMARY, Updated Hours EST, RATES"
Set WB = ActiveWorkbook
arr = Split(mySheets, ",")
For i = LBound(arr) To UBound(arr)
WB.Sheets(arr(i)).PrintOut
Next i
End Sub