View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Barmaley Barmaley is offline
external usenet poster
 
Posts: 21
Default How to highlight active row and column?

That is way too cool

Thanks BOB, I will use it too

AvP

"Bob Phillips" wrote in message
...
'----------------------------------------------------------------
Private Sub WorkSheet_SelectionChange(ByVal Target As Range)
'----------------------------------------------------------------

Cells.FormatConditions.Delete
With Target.EntireRow
.FormatConditions.Add Type:=xlExpression, Formula1:="TRUE"
.FormatConditions(1).Interior.ColorIndex = 35
End With
With Target.EntireColumn
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, Formula1:="TRUE"
.FormatConditions(1).Interior.ColorIndex = 35
End With
With Target
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, Formula1:="TRUE"
.FormatConditions(1).Interior.ColorIndex = 36
End With


End Sub


'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select



--

HTH

RP
(remove nothere from the email address if mailing direct)


"Ricktaxx" wrote in message
...
I have a very large table and I am hoping to find a way to highligh the
current row and coloum somehow to allow a crosshair like look that

follows
the active cell. The table is a look up table and following the lines

can
be
a pain even with grided shading.