O'Reilly logo

Programming Excel with VBA and .NET by Steve Saunders, Jeff Webb

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

pagesetup.PaperSize [= setting]

Synopsis

Sets or returns an XlPaperSize constant that determines the paper size used by the printer. Possible settings are:

xlPaper10x14

xlPaper11x1

xlPaperA3 (297 mm × 420 mm)

xlPaperA4 (210 mm × 297 mm)

xlPaperA4Small (210 mm × 297 mm)

xlPaperA5 (148 mm × 210 mm)

xlPaperB4 (250 mm × 354 mm)

xlPaperB5 (148 mm × 210 mm)

xlPaperCsheet

xlPaperDsheet

xlPaperEnvelope9 (3 7/8 in. × 8 7/8 in.)

xlPaperEnvelope10 (4 1/8 in. × 9 1/2 in.)

xlPaperEnvelope11 (4 1/2 in. × 10 3/8 in.)

xlPaperEnvelope12 (4 1/2 in. × 11 in.)

xlPaperEnvelope14 (5 in. × 11 1/2 in.)

xlPaperEnvelopeB4 (250 mm × 353 mm)

xlPaperEnvelopeB5 (176 mm × 250 mm)

xlPaperEnvelopeB6 (176 mm × 125 mm)

xlPaperEnvelopeC3 (324 mm × 458 mm)

xlPaperEnvelopeC4 (229 mm × 324 mm)

xlPaperEnvelopeC5 (162 mm × 229 mm)

xlPaperEnvelopeC6 (114 mm × 162 mm)

xlPaperEnvelopeC65 (114 mm × 229 mm)

xlPaperEnvelopeDL (110 mm × 220 mm)

xlPaperEnvelopeItaly (110 mm × 230 mm)

xlPaperEnvelopeMonarch (3 7/8 in. × 7 1/2 in.)

xlPaperEnvelopePersonal (3 5/8 in. × 6 1/2 in.)

xlPaperEsheet

xlPaperExecutive (7 1/2 in. × 10 1/2 in.)

xlPaperFanfoldLegalGerman (8 1/2 in. × 13 in.)

xlPaperFanfoldStdGerman (8 1/2 in. × 13 in.)

xlPaperFanfoldUS U.S. (14 7/8 in. × 11 in.)

xlPaperFolio (8 1/2 in. × 13 in.)

xlPaperLedger (17 in. × 11 in.)

xlPaperLegal (8 1/2 in. × 14 in.)

xlPaperLetter (8 1/2 in. × 11 in.)

xlPaperLetterSmall (8 1/2 in. × 11 in.)

xlPaperNote ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required