XlPaperSize is incomplete

kobusb

New Member
Joined
May 15, 2011
Messages
9
Office Version
  1. 365
Platform
  1. Windows
The paper size can be obtained from PageSetup.PaperSize and according the the help file it reports a value according to the XlPaperSize Enumeration. It seems that XlPaperSize is incomplete because it is possible to set paper sizes that is not mentioned in XlPaperSize e.g.
For the Adobe PDF printer it is possible to select an "ANSI C" paper size for which PageSetup.PaperSize gives a value of 126 which is not listed in the XlPaperSize Enumeration.

Where can I obtain a full enumeration list?
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
As far as I know some paper sizes are printer specific.

The ones you'll find in the enumeration are the ones that are standard across printers.
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,629
Members
452,933
Latest member
patv

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top