Dengan vba code kita dapat mewarnai kolom dan baris dari active cell. Copy paste code berikut ini ke dalam Visual Basic Editor (VBE) pada bagian sheet:

=======

Private Sub Worksheet_SelectionChange(ByVal Target _
As Excel.Range)
Cells.Interior.ColorIndex = xlNone
With ActiveCell
.EntireRow.Interior.ColorIndex = 35
.EntireColumn.Interior.ColorIndex = 35
End With
End Sub
=======

=xlans=