Applies ToExcel for Microsoft 365 Word for Microsoft 365 Outlook for Microsoft 365 PowerPoint for Microsoft 365 Project Online Desktop Client Publisher for Microsoft 365 Excel for the web Word for the web PowerPoint for the web Excel 2024 Word 2024 Outlook 2024 PowerPoint 2024 Project Professional 2024 Project Standard 2024 Excel 2024 for Mac Word 2024 for Mac PowerPoint 2024 for Mac Excel 2021 Word 2021 Outlook 2021 PowerPoint 2021 Project Professional 2021 Project Standard 2021 Publisher 2021 Excel 2021 for Mac Word 2021 for Mac PowerPoint 2021 for Mac Excel 2019 Word 2019 Outlook 2019 PowerPoint 2019 Project Professional 2019 Project Standard 2019 Publisher 2019 Excel 2016 Word 2016 Outlook 2016 PowerPoint 2016 Project Professional 2016 Project Standard 2016 Publisher 2016

You can change the look of a line shape by changing its color, line style, or weight. If you are using Excel, Outlook, Word, or PowerPoint, you can apply a predefined Quick Style to quickly change the look of your line. 

What do you want to do?

Add a Quick Style to a line

Quick Styles for lines include theme colors from the document theme, shadows, line styles, gradients, and three-dimensional (3-D) perspectives. When you position your pointer over a Quick Style thumbnail, you can see how the style affects your line. Try different Quick Styles until you find one that you like.

  1. Select the line you want to change.

    If you want to change multiple lines, select the first line, and then press and hold Ctrl while you select the other lines.

  2. On the Shape Format tab, select the Quick Style you want.

    Shows line Quick Styles in Office

    To see more Quick Styles, click the More button More button.

    Note: If you don't see the Format tab, make sure you've selected the line.

Top of Page

Change the color of a line

  1. Select the line that you want to change.

    If you want to change multiple lines, select the first line, and then press and hold Ctrl while you select the other lines.

  2. On the Shape Format tab, select Shape Outline, then select the color that you want.

    Shows line color options in Office

    Note: If you don't see the Shape Format tab, make sure you've selected the line.

    To use a color that isn't a theme color, click More Outline Colors, and then click the color you want on the Standard tab, or mix your own color on the Custom tab. Custom colors and colors on the Standard tab are not updated if you later change the document theme.

Top of Page

Make a line dotted or dashed

  1. Select the line you want to change.

    If you want to change multiple lines, select the first line, and then press and hold Ctrl while you select the other lines.

  2. On the Shape Format tab, select Shape Outline.

    Shows different line styles in Office

    Note: If you don't see the Shape Format tab, make sure you've selected the line.

  3. Point to Dashes, and then click the style you want.

    To create a custom style, select More Lines, then choose the options that you want.

Top of Page

Change the weight of a line

  1. Select the line that you want to change.

    If you want to change multiple lines, select the first line, and then press and hold Ctrl while you select the other lines.

  2. On the Shape Format tab, select Shape Outline.

    Shows different line weights in Office

    Note: If you don't see the Shape Format tab, make sure you've selected the line.

  3. Point at Weight, then select the line weight that you want.

    To create a custom line weight, click More Lines, and then choose the options that you want.

    Note: To draw a double line, draw a single line, copy and paste a second line next to it, and then group the two lines.

Top of Page

Format cell borders in Excel

If you want to apply line styles and colors to borders in Excel spreadsheets or tables, see the following articles:

Top of Page

Work with lines in Project

You need to have a Gantt chart open to follow these steps.

  1. Right-click the line you want to change, and click Properties.

  2. Under Line, choose a color from the Color list and a line thickness from the Line list.

Top of Page

The following options are available in the web apps for Word, Excel, and PowerPoint. 

Add a Quick Style to a line

  1. Select the line you want to change.

    If you want to change multiple lines, select the first line, and then press and hold Ctrl while you select the other lines.

  2. On the Shape tab, select the quick style you want.

    On the Shape tab, you can select a quick style to apply to the currently selected line.

    To see more quick styles, select the  More button at the right end of quick-style gallery.

    Note: If you don't see the Shape tab, make sure you've selected the line.

Change the color of a line

  1. Select the line that you want to change.

    If you want to change multiple lines, select the first line, and then press and hold Ctrl while you select the other lines.

  2. On the Shape tab, select Shape Outline (or, in Excel, just Outline), then select the color that you want.

    On the Shape tab, under Shape Outline, you can select a color to apply to the currently selected shape.

    Note: If you don't see the Shape tab, make sure you've selected the line.

    To use a color that isn't a theme color, click More Outline Colors, and then click the color you want in the Custom Colors dialog. (Custom colors are not updated if you later change the document theme.)

Make a line dotted or dashed

  1. Select the line you want to change.

    If you want to change multiple lines, select the first line, and then press and hold Ctrl while you select the other lines.

  2. On the Shape tab, select Shape Outline (or, in Excel, just Outline).

    On the Shape tab, under Shape Outline, you can change a solid line to dashed or dotted.

    Note: If you don't see the Shape tab, make sure you've selected the line.

  3. Point at Dashes, then select the style you want.

Change the weight of a line

  1. Select the line that you want to change.

    If you want to change multiple lines, select the first line, and then press and hold Ctrl while you select the other lines.

  2. On the Shape tab, select Shape Outline (or, in Excel, just Outline).

    On the Shape tab, under Shape Outline, you can use the Weight options to change the thickness of the selected line.

    Note: If you don't see the Shape tab, make sure you've selected the line.

  3. Point at Weight, then select the line weight that you want.

    Note: To draw a double line, draw a single line, copy and paste a second line next to it, and then group the two lines.

What do you want to do?

Add a Quick Style to a line

Quick Styles for lines include theme colors from the document theme, shadows, line styles, gradients, and three-dimensional (3-D) perspectives. Try different Quick Styles until you find one that you like.

  1. Select the line you want to change.

    If you want to change multiple lines, select the first line, and then press and hold command button for Apple computers Command while you select the other lines.

  2. On the Shape Format tab, select the Quick Style you want.

    Mac quick styles menu

    To see more Quick Styles, click the More Mac quick styles dropdown button button.

    Note: If you don't see the Shape Format tab, make sure you've selected the line.

Top of Page

Change the color of a line

  1. Select the line that you want to change.

    If you want to change multiple lines, select the first line, and then press and hold command button for Apple computers Command while you select the other lines.

  2. On the Shape Format tab, select Shape Outline, then select the color that you want.

    Mac shape outline menu

    Note: If you don't see the Shape Format tab, make sure you've selected the line.

    To use a color that isn't a theme color, click More Outline Colors, and then click the color you want.

Top of Page

Make a line dotted or dashed

  1. Select the line you want to change.

    If you want to change multiple lines, select the first line, and then press and hold command button for Apple computers Command while you select the other lines.

  2. On the Shape Format tab, select Shape Outline.

    Mac shape outline dashes menu

    Note: If you don't see the Shape Format tab, make sure you've selected the line.

  3. Point to Dashes, and then click the style you want.

    To create a custom style, select More Lines, then choose the options that you want.

Top of Page

Change the weight of a line

  1. Select the line that you want to change.

    If you want to change multiple lines, select the first line, and then press and hold command button for Apple computers Command while you select the other lines.

  2. On the Shape Format tab, select Shape Outline.

    Mac shape outline weight menu

    Note: If you don't see the Shape Format tab, make sure you've selected the line.

  3. Point at Weight, then select the line weight that you want.

    To create a custom line weight, click More Lines, and then choose the options that you want.

    Note: To draw a double line, draw a single line, copy and paste a second line next to it, and then group the two lines.

Top of Page

See Also

Draw or delete a line or connector

Format the bar chart of a Gantt Chart view in Project

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.