help: macro to print an excel to pdf with 92x92 paper size
I'm trying to script a n ecel macro to convert a xls file to pdf 92x92.
Dim newPrinter As String
newPrinter = GetPrinterFullName("AdobePDF")
Application.ActivePrinter = newPrinter
Workbooks.Open (InputfileName)
For Each sheet In Workbooks(InputfileName).Worksheets
sheet.PageSetup.PaperSize = ????
what kind of number do I have to use instead of "???".
With PdfCreator as a printer I used 162, now with "Adobe Acrobat Pro DC 2015 version 2015.006.30172" this number dosesn't any more even if the paper size 92x92 is visible in the printer setting.
