This article describes what gridlines are, and how to show or hide them in your Excel 2007 workbooks.
In this article
What are cell gridlines?
Gridlines are the faint lines that appear around cells in Excel 2007. They are used to distinguish cells on the worksheet.
When working with gridlines, keep the following things in mind.
- By default, gridlines are displayed in worksheets using a color that is assigned by Excel. If you like, you can change the color of the gridlines for a particular worksheet. For more information, see Change the color of gridlines in a worksheet.
- Gridlines do not print by default. If you want gridlines to appear on the printed page, see Print gridlines in a worksheet.
- People often confuse borders and gridlines in Excel. Gridlines cannot be customized in the same way that borders can. If you want to be able to change the width or other attributes of the line, see Apply or remove cell borders on a worksheet.
- If you apply a fill color to cells on your worksheet, you won't be able to see or print the cell gridlines for those cells. If you want to see or print the gridlines for these cells, you must remove the fill color. To do so, select the cells, and then click arrow next to Fill Color
(Home tab, Font group). To remove the fill color, click No Fill. Keep in mind that you must remove the fill entirely. If you simply change the fill color to white, the gridlines will remain hidden. If you want to be able to retain the fill color, you can use borders instead of gridlines. For more information, see Apply or remove cell borders on a worksheet.
- Gridlines are always applied to the entire worksheet or workbook. If you want to selectively apply lines around specific cells or ranges of cells, you should use borders instead of, or in addition to, gridlines. For more information, see Apply or remove cell borders on a worksheet.
Top of Page
Hide gridlines on a worksheet
If the design of your workbook requires it, you can hide the gridlines:
- Select one or more worksheets.
How to select worksheets
Tip When multiple worksheets are selected, [Group] appears in the title bar at the top of the worksheet. To cancel a selection of multiple worksheets in a workbook, click any unselected worksheet. If no unselected sheet is visible, right-click the tab of a selected sheet, and then click Ungroup Sheets on the shortcut menu.
- On the View tab, in the Show/Hide group, clear the Gridlines check box.
Top of Page
Show gridlines on a worksheet
If the gridlines on your worksheet are hidden, you can use the following procedure to show them again.
- Select one or more worksheets.
How to select worksheets
Tip When multiple worksheets are selected, [Group] appears in the title bar at the top of the worksheet. To cancel a selection of multiple worksheets in a workbook, click any unselected worksheet. If no unselected sheet is visible, right-click the tab of a selected sheet, and then click Ungroup Sheets on the shortcut menu.
- On the View tab, in the Show/Hide group, select the Gridlines check box.
Top of Page