Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.29 KB

Excel.Application.MapPaperSize.md

File metadata and controls

48 lines (31 loc) · 1.29 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.MapPaperSize property (Excel)
vbaxl10.chm133286
vbaxl10.chm133286
Excel.Application.MapPaperSize
c1d83fab-6abc-9103-78cf-047a503688b1
04/05/2019
medium

Application.MapPaperSize property (Excel)

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 then 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

[!includeSupport and feedback]