LeftMargin Property [WksPageSetup]
LeftMargin returns or sets the left margin distance in page units. Returns a double.
Syntax
object.LeftMargin
object.LeftMargin = Margin
Parameter |
Type |
Description |
Margin |
Double |
required, use page units |
Example 1
This example demonstrates how to return the left margin of a worksheet page to be printed.
Debug.Print WksPageSetup.LeftMargin
Example 2
This example demonstrates how to set the left margin of a worksheet page to be printed to 0.5 page units.
WksPageSetup.LeftMargin = 0.5
Used by: WksPageSetup object