VBA & Macro Problems

Create an Excel Keyboard Shortcut to Change Font Color to Black

Rana GarciaRana Garcia Nov 27, 2026 869 views

Question details

The user wants a persistent keyboard shortcut that changes font color back to black in Excel.

Create an Excel Keyboard Shortcut to Change Font Color to Black
Product
Microsoft Excel
Device & OS
not provided
Scenario
Quickly restore black font color without repeatedly using the font-color controls.
Observed behavior
The desired shortcut should apply black font color to selected cells and remain available in future Excel sessions.
Before you start

Open Excel and select a cell with text whose font color you can change. If the Developer tab is hidden, use View > Macros > Record Macro to start recording.

Solution 1Recommended

Record a Black Font Color Macro and Assign a Shortcut

Use a macro shortcut to apply black font color to selected cells across Excel sessions.

Store the macro in the Personal Macro Workbook so Excel can load it in future sessions. The shortcut applies formatting to selected cells; it does not target only selected characters while a cell is being edited.

1
Select a cell

Select a cell in the worksheet before starting the recording. Avoid selecting other cells while the macro is recording.

2
Start recording

Choose View > Macros > Record Macro, name the macro BlackFont, and select Personal Macro Workbook under Store macro in.

3
Assign a shortcut

In the Shortcut key field, enter an uppercase letter, such as B, to assign Ctrl+Shift+B. Choose a combination you do not need for another Excel command, then select OK.

4
Set the font color

On the Home tab, open the Font Color menu and choose black. Then select View > Macros > Stop Recording.

5
Save and test

Select one or more cells and press the assigned shortcut. When you close Excel, save changes to the Personal Macro Workbook if prompted.

Record a Black Font Color Macro and Assign a Shortcut
Shortcut limitations: Excel's macro shortcut field uses Ctrl plus a letter, or Ctrl+Shift plus a letter; it does not directly assign combinations such as Ctrl+Alt+1. Assigned macro shortcuts can override existing Excel shortcuts.
Free Microsoft Office alternative

Format Spreadsheet Font Colors with WPS Office

WPS Office is a free, lightweight alternative for opening and formatting spreadsheets. Its familiar interface and Microsoft Office format compatibility make it easy to move existing files, although it does not configure Excel's Personal Macro Workbook or its shortcuts.

Change spreadsheet font colors from a familiar formatting toolbarOpen and edit Microsoft Excel XLS and XLSX filesUse a free, lightweight office suite with a familiar interfaceMove existing Office documents into WPS Office without starting over
microsoft office alternative - wps office

Frequently Asked Questions

How do I make the macro available in every Excel session?

When recording the macro, choose Personal Macro Workbook in the Store macro in menu. Save changes to that workbook when Excel prompts you on exit.

Can I assign Ctrl+Alt+1 to the macro in Excel?

Not through Excel's standard macro shortcut field. That field assigns Ctrl plus a letter or Ctrl+Shift plus a letter.

How can I change the macro's shortcut later?

Open View > Macros > View Macros, select the macro, and choose Options. Enter a new letter in the Shortcut key field.

Can the shortcut change only part of the text in a cell?

The recorded cell-formatting macro applies to selected cells, not selected characters while editing. To format part of a cell, enter edit mode, select the characters, and use Home > Font Color.

Why does the shortcut not run after I reopen Excel?

Check that you saved the Personal Macro Workbook when closing Excel and that your macro security settings allow the macro to run. Review those settings under File > Options > Trust Center > Trust Center Settings > Macro Settings.