Private Sub SaveWorksheetAsPDF(Title As String, Path As String) Dim FileName As String = "\ResultsSheet" & Title & ".pdf" Dim totalFileName As String = Path & FileName 'Print the document to PDF oSheet.PrintOut(copies:=1, Preview:=False, ActivePrinter:="Microsoft Print To PDF", PrToFileName:=totalFileName, PrintToFile:=True) End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)