Private Sub CommandButton1() ' Define the postscript and .pdf file names. Dim PSFileName As String Dim PDFFileName As String PSFileName = "I:\PERFORM\Personal\Andrew\Pulse_Ladder_MB.ps" PDFFileName = "I:\PERFORM\Personal\Andrew\Pulse_Ladder_MB.pdf"
' Print the Excel range to the postscript file Dim MySheet As Worksheet 'MySheet = sT25MB Set MySheet = ActiveSheet MySheet.Range("A1:I31").PrintOut copies:=1, preview:=False, ActivePrinter:="Acrobat Distiller", printtofile:=True, collate:=True ' Convert the postscript file to .pdf Dim myPDF As PdfDistiller Set myPDF = New PdfDistiller myPDF.FileToPDF PSFileName, PDFFileName, "" End Sub