Hi all,
I am looking for VBA to fill color (red) when I select a certain range of rows. I will assign a hotkey for this and then select multiple rows and hit the hot key to fill the row with color. Currently I have a code that works for the first row that has been selected (i.e. one row at a time).
Can somebody please help me add to this code so that I can change the color of more than one row at a time, or alternatively all active cells?
Thanks team,
I am looking for VBA to fill color (red) when I select a certain range of rows. I will assign a hotkey for this and then select multiple rows and hit the hot key to fill the row with color. Currently I have a code that works for the first row that has been selected (i.e. one row at a time).
Can somebody please help me add to this code so that I can change the color of more than one row at a time, or alternatively all active cells?
Code:
Sub fill_color_rows()
Rows(ActiveCell.Row).Interior.ColorIndex = 28
End Sub
Thanks team,