There's no need to Select the worksheet in order to modify row 6 font's color.
Also, Range(Rows(6)) is not valid, use Rows(6).
Sub my_script()
Sheets("mysheet").Rows(6).Font.Color = vbWhite
End Sub
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more