Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Changing the Color of Worksheet Gridlines.

Changing the Color of Worksheet Gridlines

Written by Allen Wyatt (last updated June 9, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


3

Most people using Excel leave the gridlines visible so that they can easily see where the various cells are. By default, the gridlines are a light gray. You can easily change the gridlines to a different color by following these steps:

  1. Display the Excel Options dialog box. (In Excel 2007 click the Office button and then click Excel Options. In Excel 2010 or a later version, display the File tab of the ribbon and then click Options.)
  2. Click Advanced at the left side of the dialog box.
  3. Scroll through the options until you see the Display Options for this Worksheet section. (See Figure 1.)
  4. Figure 1. The Advanced options of the Excel Options dialog box.

  5. Ensure the Show Gridlines check box is selected.
  6. Using the Gridline Color drop-down list, choose the color you want to use.
  7. Click OK.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (6210) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Changing the Color of Worksheet Gridlines.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Opening a Workbook as Read-Only

When you need to work on a workbook, you may want to do so without modifying the original contents of the workbook. This ...

Discover More

Making Sure Word Doesn't Capitalize Anything Automatically

Word, in an effort to be helpful, will often change the capitalization of the words you type. If you tire of Word's ...

Discover More

Opening Sites in a Browser

You can store all sorts of information in a worksheet, including Web addresses. If you want to open those addresses in a ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

Disabling Moving Between Worksheets

If you want someone to not be able to move from one worksheet to another in a workbook, you've got your work cut out for ...

Discover More

Making Multiple Worksheet Copies

If you spend a lot of time creating a worksheet, you might want to make multiple copies of that worksheet as a starting ...

Discover More

Dynamic Worksheet Tab Names

Need a worksheet's name to change based on the contents of a cell? You'll need to rely on a macro to do the changing, but ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is two more than 7?

2021-02-06 14:28:37

John Mann

This bears further investigation on my part - thanks for idea. When I set the grid lines colour to a non-standard colour, I usually match them to the colour of the tab for the worksheet. Setting the grid colour to match the tab colour is an attempt to replace the very nice feature in Lotus 1-2-3 whereby the tab colour o the entire active sheet is reproduced as a line across the top of the sheet. (1-2-3 has it's tabs across the top, instead of wasting space in the status bar. (see Figure 1 below)

It would seem to me, therefor, that modifying the macro to pick up the colour of the worksheet tab, and then applying it tothe gridlines of not just a range of cells but to the entire sheet would be very useful. Something to experiment with while I'm learning macros.

Figure 1. Lotus 1-2-3 tabs


2021-01-31 06:55:02

Harold Druss

For John Mann:
How about a macro?

Sub SetBackgroundColor()
Dim rng As Range
Set rng = Range("D1, D3, D5, D7")
With rng
.Interior.ColorIndex = 8
.BorderAround ColorIndex:=1, Weight:=xlThin
End With
End Sub


2021-01-30 16:51:12

John Mann

I've used this option on a number of occasions for various reasons - practical or just to look pretty.

It doesn't solve a problem I've encountered with Excel 2010 (can't write about other versions) where when I set a background colour for a range of cells, the grid-lines disappear. If I want them to be visible within a coloured ranged, I have to actually format the range with external and internal borders of the desired colour. On some occasions I've done that by selecting the entire sheet, then setting the border colours.


This Site

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.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.