PageSetup.LeftMargin Property
Excel Developer Reference |
Returns or sets the size of the left margin, in points. Read/write Double.
Syntax
expression.LeftMargin
expression A variable that represents a PageSetup object.
Remarks
Margins are set or returned in points. Use the InchesToPoints method or the CentimetersToPoints method to convert measurements from inches or centimeters.
Example
This example sets the left margin of Sheet1 to 1.5 inches.
Visual Basic for Applications |
---|
|
This example sets the left margin of Sheet1 to 2 centimeters.
Visual Basic for Applications |
---|
|
This example displays the current left-margin setting for Sheet1.
Visual Basic for Applications |
---|
|
See Also