Written by Allen Wyatt (last updated February 21, 2025)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and 2021
Excel provides tools that allow you to create a number of shapes that were previously only available through the use of a drawing program. One of these shapes is a line. (Yes, the simple line!) Here's how you add one to your worksheet:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10086) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and 2021. You can find a version of this tip for the older menu interface of Excel here: Drawing Lines.
Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!
Filling one of Excel's drawing shapes with a picture of your choosing is a neat trick. Here's how to do it.
Discover MoreNot only can you place drawing objects in your worksheets, but you can organize those objects so some are in front and ...
Discover MoreExcel allows you to add borders to a cell or range of cells. If the available borders aren't exactly as you desire, you ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2021-08-07 21:20:30
Ronmio
If you want the line to be perfectly horizontal or vertical (or inbetween in 45° steps), just position the end of the line at approximately the desired angle and hold down the shift key while letting up on the mouse button. The line will snap to precisely the angle you want.
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2025 Sharon Parq Associates, Inc.
Comments