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