Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Converting Inches to Points.
by Allen Wyatt
(last updated November 3, 2012)
A point is a typographical measurement that is quite small. Points are used to specify many typographical elements, such as font size and line spacing. This means that when writing macros, it may be helpful to convert from a familiar measurement (such as inches) to the equivalent measurement in points.
There are approximately 72 points per inch. This means that you could simply multiply a measurement in inches by 72 in order to derive a result. However, VBA also provides a method that does the conversion for you. Simply use the InchesToPoints method, as follows:
Selection.ParagraphFormat.SpaceAfter = InchesToPoints(0.1)
This example sets the space after a paragraph equal to one-tenth of an inch. VBA takes care of the necessary conversion from inches to points.
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1448) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Converting Inches to Points.
Do More in Less Time! Are you ready to harness the full power of Word 2013 to create professional documents? In this comprehensive guide you'll learn the skills and techniques for efficiently building the documents you need for your professional and your personal life. Check out Word 2013 In Depth today!
Need to figure out the number of characters in a range of selected text? Here's how to do it in VBA.Discover More
Need to know if the Num Lock key is on or off? You can use a short bit of macro code to figure out the state of the key.Discover More
You can open multiple documents at the same time in Word, and each document occupies its own document window. Here's a way ...Discover More
Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.