5

By default, MS Excel cells displays white background with black text. This is glaring to the eyes. Some even find it painful. How can we make MS Excel to display black/dark background with white text instead?

I'm sure many of us will find this more comfortable to our eyes.

I am using MS Excel 2016 on Windows 10.

curious
  • 433
  • 4
  • 12
  • 27
  • You could change the Normal Style to have a Fill that is black and Font that is white. Unfortunately, you won't be able to see the gridlines if you do that. You can give the rest of the interface a dark theme using Options | General | Personalize your copy of Microsoft Office | Office Theme | Black. – Blackwood Sep 04 '18 at 01:58

2 Answers2

4

This updated code makes all sheets black and adds cell borders to simulate the grid lines;

Private Sub Workbook_Open()

    Dim xsheet As Worksheet

    For Each xsheet In ThisWorkbook.Worksheets
        xsheet.Select
        With Range(Cells(1, 1), Cells(1048576, 5000))
            .Interior.Color = vbBlack 'xlNone '
            .Font.Name = "Calibri"
            '.Font.Size = "11"
            .Font.Color = vbWhite 'vbBlack
            .Borders.LineStyle = xlContinuous
            .Borders.Weight = xlThin
            .Borders.ColorIndex = 49 'colors here http://dmcritchie.mvps.org/excel/colors.htm
        End With
    
    Next xsheet

End Sub
Joe
  • 103
  • 3
Chris
  • 41
  • 1
3

The most easiest method I can suggest you is VBA (Macro).

Private Sub Workbook_Open()

Dim xsheet As Worksheet 

For Each xsheet In ThisWorkbook.Worksheets

ThisWorkbook.Sheets.Select
    With Range(Cells(1, 1), Cells(1048576, 5000))
        .Interior.Color = vbCyan
        .Font.Name = "Calibri"
        .Font.Size = "11"
        .Font.Color = vbWhite
    End With
    Next xsheet
End Sub

How it works:

  1. Press Alt+F11 to open VB editor.
  2. Find & Click the This Workbook Icon.
  3. Select Workbook from left Dropdown & Open from right Dropdown.
  4. Copy & Paste lines from ThisWorkbook.Sheets.Select to End With & Save the Workbook.

Next time when you open the Workbook, you find the new look.

Note, Sheet's dimension, Interior & Font Color as well as Font name & size are editable.

Rajesh Sinha
  • 8,995
  • 6
  • 15
  • 35