This example sets the left margin of Sheet1 to 1.5 inches.
Worksheets("Sheet1").PageSetup.LeftMargin = _
Application.InchesToPoints(1.5)
This example sets the left margin of Sheet1 to 2 centimeters.
Worksheets("Sheet1").PageSetup.LeftMargin = _
Application.CentimetersToPoints(2)
This example displays the current left-margin setting for Sheet1.
marginInches = Worksheets("Sheet1").PageSetup.LeftMargin / _
Application.InchesToPoints(1)
MsgBox "The current left margin is " & marginInches & " inches"