You can create a cell style that includes a custom border, and then you can apply that cell style when you want to display the custom border around selected cells.
- On the Home tab, in the Styles group, click Cell Styles.
Tip: If you do not see the Cell Styles button, click Styles, and then click the More button next to the cell styles box.
- Click New Cell Style.
- In the Style name box, type an appropriate name for the new cell style.
- Click Format.
- On the Border tab, under Line, in the Style box, click the line style that you want to use for the border.
- In the Color box, select the color that you want to use.
- Under Border, click the border buttons to create the border that you want to use.
- Click OK.
- In the Style dialog box, under Style Includes (By Example), clear the check boxes for any formatting that you do not want to include in the cell style.
- Click OK.
- To apply the cell style, do the following:
- Select the cells that you want to format with the custom cell border.
- On the Home tab, in the Styles group, click Cell Styles.
- Click the custom cell style that you just created. Like the FancyBorderStyle button in this picture.
Draw Cell Borders
To customize the line style or color of cell borders or erase existing borders, you can use the Draw Borders options. To draw cell borders, you'll first select the border type, then the border color and line style, and select the cells that you want to add a border around. Here's how:
- Click Home > the Borders arrow .
- Pick Draw Borders for outer borders or Draw Border Grid for gridlines.
- Click the Borders arrow > Line Color arrow, and then pick a color.
- Click the Borders arrow > Line Style arrow, and then pick a line style.
- Select cells you want to draw borders around.