Log in

View Full Version : How to get a width of a selected text?



GeoZZZ
09-29-2010, 05:05 AM
Hello
I need to get a width of a text range (not in symbols, but in a graphical units - inches/tweeps/points/centimeters - anything).
Is it possible to do somehow?

Thanks a lot,
George

fumei
09-29-2010, 09:05 AM
You can try using wdHorizontalPositionRelativeToPage, but I am not sure how reliable it will be for your purposes.

BTW: what IS your purpose?

fumei
09-29-2010, 09:17 AM
You may want to look at: http://word.mvps.org/FAQs/MacrosVBA/GetPosRelToPage.htm