Hi JabbaTheNut,
It's been almost 2 years since you helped me with my previous question, it was really helpful and I appreciate it very much.
Now I have another mission and would like your expert help. How do I print mulitple pages to the same pdf file?
Using your previous code, I was able to print one page, but now I have muliptle pages to print to the same pdf output file, the following code would only give me the last page in the pdf file!
Here is part of my vba code:
' Print page to PDF File
PSFileName = "U:\1Tony\pdf\" & CustNo & "Ps"
PDFFileName = "U:\1Tony\pdf\" & CustNo & ".pdf"
' Print Invoice Detail page
Worksheets("InvDetail").Select
ActiveSheet.PrintOut Copies:=1, ActivePrinter:=PTR, Collate:=True, _
PrintToFile:=True, PrToFileName:=PSFileName
' Convert the postscript file to .pdf
' Print Remittance Summary Page
Worksheets("RemitSum").Select
ActiveSheet.PrintOut Copies:=1, ActivePrinter:=PTR, Collate:=True, _
PrintToFile:=True, PrToFileName:=PSFileName
Set myPDF = New PdfDistiller
myPDF.FileToPDF PSFileName, PDFFileName, ""
Looking forward to your early reply....
Thanks and regards
Tony