Application.MapPaperSize 属性 (Excel)

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

语法

表达式MapPaperSize

expression:表示 Application 对象的变量。

示例

此示例确定 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

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。