vbabeginner92
New Member
- Joined
- Jul 25, 2018
- Messages
- 13
I am trying to create a macro that will highlight cells already selected. Below is the code I used but that is only working for the active cell. How can I alter the code to highlight all the cells I selected.
Example: Cell C15 is the active cell and cells C15:C20 are selected. When I run my macro, only C15 is highlighted, but I want cells C15:C20 highlighted.
Sub Highlighter()
ActiveCell.Interior.Color = RGB (255,255,0)
End Sub
Example: Cell C15 is the active cell and cells C15:C20 are selected. When I run my macro, only C15 is highlighted, but I want cells C15:C20 highlighted.
Sub Highlighter()
ActiveCell.Interior.Color = RGB (255,255,0)
End Sub