Application.CentimetersToPoints method (Excel)
Converts a measurement from centimeters to points (one point equals 0.035 centimeters).
expression.CentimetersToPoints (Centimeters)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Centimeters | Required | Double | Specifies the centimeter value to be converted to points. |
Double
This example sets the left margin of Sheet1 to 5 centimeters.
VB
Worksheets("Sheet1").PageSetup.LeftMargin = _
Application.CentimetersToPoints(5)
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.