I want to create a macro that will highlight all rows of a selected range of cells. E.g. If I select cells A1 and B3 I want the macro to highlight rows 1 and 3. Currently I have the following macro which is able to highlight a row from a single cell, but I don't know how to expand it to highlight the rows of all selected cells:
Sub Macro1()
ActiveCell.EntireRow.Style = "Good"
End Sub
ActiveCell
withSelection
– DeanBDeantypename(selection) = "Range"
). – PatricK