inches, points, etc.

D

David Thielen

No - not a VIagra ad :).

How do I get what the default measurement is in the running edition of Word?
There is an option to set it to inches, centimeters, points, etc. - I want to
get that setting.
 
P

Peter Huang [MSFT]

Hi

We can use the code below to get and set the Unit.
Sub Macro1()
Application.Options.MeasurementUnit = wdMillimeters
Debug.Print Application.Options.MeasurementUnit
End Sub

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

Const wdCentimeters = 1
Const wdInches = 0
Const wdMillimeters = 2
Const wdPicas = 4
Const wdPoints = 3


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
D

David Thielen

That's it - thank you.

I hope for Office 2005/.NET2005 that they do a better job with the
documentation for the API so I can find stuff like this myself.
 
P

Peter Huang [MSFT]

Hi

Thanks for your feedback.
Also I think you may try to use the word's record macro function to find
the macro.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top