I'm using the code I found in another thread
' Define the postscript and .pdf file names.
Dim PSFileName As String
Dim PDFFileName As String
PSFileName = "C:\myPostScript.ps"
PDFFileName = "C:\myPDF.pdf"
' Print the Excel range to the postscript file
Dim Foglio1 As Worksheet
Set Foglio1 = ActiveSheet
Foglio1.PrintOut copies:=1, preview:=False, _
ActivePrinter:="Acrobat Distiller", printtofile:=True, collate:=True, _
prtofilename:=PSFileName
' Convert the postscript file to .pdf
Dim myPDF As PdfDistiller
Set myPDF = New PdfDistiller
myPDF.FileToPDF PSFileName, PDFFileName, ""
I expect my sheet to be converted in a pdf but it appears that nothing happens. please do help me