To hide gridlines, untick View → Gridlines, or press Alt → W → V → G. It applies to the active sheet only; select several sheet tabs first (hold Ctrl and click) to change them together.
Gridlines don’t print by default. To print them, tick Page Layout → Sheet Options → Gridlines → Print. They print only for the used range or print area; for a table that must look lined on paper or in a PDF, apply All Borders instead.
To change their colour, go to File → Options → Advanced → Display options for this worksheet, choose the sheet and pick a Gridline color. The setting is per sheet.
If gridlines vanish from some cells while View → Gridlines is ticked, those cells have a white fill. Select them and choose Home → Fill Color → No Fill to bring the gridlines back.
In Excel, when you open a workbook, you can see gridlines (light grey lines) that make the cells visible. In this tutorial, we are going to learn to deal with these gridlines.

Remove Gridlines in Excel
- You need to go to the “View” tab in the ribbon.
- From there, go to the “Show” group.
- Next, there’s a Gridlines checkbox there.
- Untick the checkbox to remove the gridlines from the active worksheet.

If you want to show the gridlines again, you just need to tick the checkbox again. You can also hide and unhide gridlines from the “Page Layout” tab, with the View checkbox under Gridlines in the Sheet Options group.

And there’s one more way that you can find in the Excel options. Go to the File Tab → Excel Options → Advanced → Display options for this worksheet → Untick “Show gridlines”.

Note: When you use any of the above options to remove the gridlines, it only applies to the active worksheet, not to the entire workbook. But if you want to remove or add gridlines on multiple worksheets, you can select a group of worksheets (hold Ctrl and click the sheet tabs) and then untick the Gridlines option.
Keyboard Shortcut for Gridlines in Excel
In the same way, you can hide and show gridlines using the following shortcut key. The following shortcut key uses the option from the “View” tab.
Alt → W → V → G
Print Gridlines in Excel
When you take a printout of the worksheet, you won’t find the gridlines on the print. But you can turn on the printing of the gridlines.
- Go to the “Page Layout” tab and navigate to the “Sheet Options” group.
- Next, you’ll find the Gridlines options there.
- From there, tick the second checkbox, “Print”.
Note: Once you turn on the printing of the gridlines, Excel will only print the gridlines for the used range (or the print area, if you have set one). Just like the following:

Change Gridline Color
By default, gridlines have a light grey color, but you can change the color of gridlines from the Excel options. Go to the File Tab → Excel Options → Advanced → Display options for this worksheet → Select the Gridline color.

When you change the color of the gridlines, it also changes the color of the gridlines in the printout, if you are using a color printer.
Gridlines Missing in Some Cells?
If the gridlines are on but you can’t see them in some cells, those cells have a fill color, usually white. A fill color covers the gridlines. Select the cells and go to Home ➜ Fill Color ➜ No Fill to bring the gridlines back.
Hide Gridlines with VBA
Gridlines are a setting of the window, so in VBA, you use the DisplayGridlines property of the active window. The following code hides the gridlines on the active sheet; use True to show them again:
Sub hide_gridlines()
ActiveWindow.DisplayGridlines = False
End Sub
Frequently Asked Questions
What is the difference between gridlines and borders?
Gridlines are only a guide on the screen and don’t print by default, and they are the same for all the cells. Borders are formatting that you apply to specific cells, in any style and color, and they always print.
How do I remove gridlines from all the sheets at once?
Right-click a sheet tab, click Select All Sheets, and then untick Gridlines on the View tab. Right-click a tab and click Ungroup Sheets when you are done.
How do I hide gridlines on a Mac?
Go to the Page Layout tab (or the View tab in newer versions) and untick View under Gridlines. It works the same way, for the active sheet only.
Written by
Puneet Gogia
Microsoft MVP — Excel · Founder, Excel Champs
Twelve years of teaching Excel, and a decade before that using it as a data analyst. Every tutorial here is written from a file I actually built.