MeasurementUnit Property

Microsoft Word Visual Basic

Show All

MeasurementUnit Property

       

Returns or sets the standard measurement unit for Microsoft Word. Read/write WdMeasurementUnits.

WdMeasurementUnits can be one of these WdMeasurementUnits constants.
wdCentimeters
wdInches
wdMillimeters
wdPicas
wdPoints

expression.MeasurementUnit

expression   Required. An expression that returns an Options object.

Example

This example sets the standard measurement unit for Word to points.

Options.MeasurementUnit = wdPoints

This example returns the current measurement unit selected on the General tab in the Options dialog box (Tools menu).

CurrUnit = Options.MeasurementUnit