Is it possible to high light a row of cells

M

Mike

I have columns from A1 to A300 TO CP1 TO CP300 if I click on a particulr cell
on any row is it possible to high light that whole row if there is a way
please tell me how!!!
 
S

Stefi

I have columns from A1 to A300 TO CP1 TO CP300 if I click on a particulr cell
on any row is it possible to high light that whole row if there is a way
please tell me how!!!

You need an event sub for that like this one:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("A1:F10")) Is Nothing Then
Range("A1:F10").Interior.ColorIndex = xlNone
Range("A" & Target.Row & ":F" &
Target.Row).Interior.ColorIndex = 6
End If
End Sub

Post if you need help to install it!

Regards,
Stefi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top