Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Converting Inches to Points.
Written by Allen Wyatt (last updated February 18, 2023)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021
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 (12253) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021. You can find a version of this tip for the older menu interface of Word here: Converting Inches to Points.
Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!
Macros allow you to do just about anything in Word, but not if you limit yourself to using just the Macro Recorder. This ...Discover More
When a macro works with files, it often has to change between different directories on your disk drive. This is done ...Discover More
One way to specify word count is to count characters and divide by five. If you still need this old-fashioned way of ...Discover More
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.
Visit the WordTips channel on YouTube