Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88868

How do you change the formated font color of a cell using VBA?

$
0
0

I would like to select rows in my excel sheet based on a criteria and then edit the format of other cells in the same row.

I know that I can select rows using autofilters (column n equals ""):

Sub beautify()

Dim rng As Range
Set rng = ActiveSheet.Range("F60:AJ3272")
rng.AutoFilter Field:=4, Field:=4, Criteria1:=""

End Sub 

Now how do I change the font of column F of the lines that I have selected to white.


Viewing all articles
Browse latest Browse all 88868


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>