Excel 2016 will no record macros to change text color

ksadeckas

New Member
Joined
Aug 17, 2015
Messages
3
I am running Excel 2016 and have tried to record simple macros that just change the font color. Nothing is recorded. The same happens for other text changes like bold, highlight, italics. I can manually type in Selection.Font.Color = vbRed into the macroand it works.

Anyone know what is happening here and how to fix it?
 

Some videos you may like

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
53,738
Office Version
365
Platform
Windows
Welcome to the Board!

I have never heard of that happening. Do you have multiple sessions of Excel open at once?
I am wondering if you are recording macros in one session, but applying the formatting changes to a different Excel session.
When this happens, are you able to get ANY code to show up at all?
 

ksadeckas

New Member
Joined
Aug 17, 2015
Messages
3
I am only running one instance of Excel and when I try to record nothing shows up in the Macro. If I include text changes in other lines, the others show up but not the text changes.
 

Twollaston

Board Regular
Joined
May 24, 2019
Messages
233
I am running Excel 2016 and have tried to record simple macros that just change the font color. Nothing is recorded. The same happens for other text changes like bold, highlight, italics. I can manually type in Selection.Font.Color = vbRed into the macroand it works.

Anyone know what is happening here and how to fix it?
Are you using conditional Formatting? I've heard of the macros not recording when using "Manage Rules", but working when clicking "New Rule"
 

ksadeckas

New Member
Joined
Aug 17, 2015
Messages
3
Are you using conditional Formatting? I've heard of the macros not recording when using "Manage Rules", but working when clicking "New Rule"
I am not using conditional formatting. I just want to highlight cells manually using a macro. I use it when I am reviewing Excel reports to highlight issues.
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
53,738
Office Version
365
Platform
Windows
If you open up a brand new Excel file, turn on the Macro Recorder, enter an entry into cell A1 and then try to apply some formatting to it, and then stop the Macro Recorder, how much of that gets recorded?
If that all works, then it points to something with the particular file that you are working on?
Is it truly an Excel file? How is the file being created?
 

Watch MrExcel Video

Forum statistics

Threads
1,102,783
Messages
5,488,854
Members
407,658
Latest member
Arias610

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top