Country Property Example

If the Country property returns wdUS, this example converts the top margin value from points to inches.

If System.Country = wdUS Then 
    topMgn = ActiveDocument.PageSetup.TopMargin
    MsgBox "Top margin is " & PointsToInches(topMgn)
End If