MapPaperSize Property

Microsoft Excel Visual Basic

MapPaperSize Property

       

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

expression.MapPaperSize

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

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

Sub UseMapPaperSize()

    ' Determine setting and notify user.
    If Application.MapPaperSize = True Then
        MsgBox "Microsoft Excel automatically " & _
            "adjusts the paper size according to the country/region setting."
    Else
        MsgBox "Microsoft Excel does not " & _
            "automatically adjusts the paper size according to the country/region setting."
    End If

End Sub