MapPaperSize 属性

       

如果自动调整以其他国家/地区的标准纸张大小(例如,A4)来设置格式的文档,以便以用户所在的国家/地区的标准纸张大小(例如,信件)来正确地打印文档,则该值为 TrueBoolean 类型,可读写。

expression.MapPaperSize

expression   必需。该表达式返回“应用于”列表中的对象之一。

示例

本示例判断 Microsoft Excel 是否能按照用户所在的国家/地区的设置来调整纸张大小,并通知用户。

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