I'm trying to create a custom paper size using Vba. Following is the code I have so far.
Code: Select all
Sub Print()
Worksheets("Certificate").PageSetup.PaperSize = xlPaperUser(8.27)x(11.8)
Worksheets("Certificate").PrintPreview
End Sub
I've set a custom paper size as
adam
8.27" x 11.8" from the page setup menu.
and I want to print this setup from vba code. Any help on this would be kindly appreciated.