Application.MapPaperSize Property

Excel Developer Reference

True if documents formatted for the standard paper size of another country/region (for example, A4) are automatically adjusted so that they're printed correctly on the standard paper size (for example, Letter) of your country/region. Read/write Boolean.

Syntax

expression.MapPaperSize

expression   A variable that represents an Application object.

Example

This example determines if Microsoft Excel can adjust the paper size according to the country/region setting and notifies the user.

Visual Basic for Applications
  Sub UseMapPaperSize()
' Determine setting and notify user.
If Application.<strong class="bterm">MapPaperSize</strong> = True Then
    MsgBox "Microsoft Excel automatically " &amp; _
        "adjusts the paper size according to the country/region setting."
Else
    MsgBox "Microsoft Excel does not " &amp; _
        "automatically adjusts the paper size according to the country/region setting."
End If

End Sub

See Also