#1   Report Post  
Pogo
 
Posts: n/a
Default Highlight Row

I want to be able to highlight the whole row if any cell in a worksheet is
selected. Is this possible. If so how would you do it. Excel is not my field
so I need a simple solution.


  #2   Report Post  
Jim
 
Posts: n/a
Default

Pogo, Hit CTRL and Spacebar to highlight a column and Shift and spacebar to
Highlight a row. Hope this helps.

_jim

"Pogo" wrote:

I want to be able to highlight the whole row if any cell in a worksheet is
selected. Is this possible. If so how would you do it. Excel is not my field
so I need a simple solution.



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

This is what I use

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.FormatConditions.Delete
With Target.EntireRow
.FormatConditions.Add Type:=xlExpression, Formula1:="TRUE"
With .FormatConditions(1)
With .Borders(xlTop)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = 5
End With
With .Borders(xlBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = 5
End With
End With
.FormatConditions(1).Interior.ColorIndex = 20
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
'the View Code option from the menu, and paste the code in.

--

HTH

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


"Pogo" wrote in message
...
I want to be able to highlight the whole row if any cell in a worksheet is
selected. Is this possible. If so how would you do it. Excel is not my

field
so I need a simple solution.




  #4   Report Post  
Pogo
 
Posts: n/a
Default

Thanks. That's just what I need.


"Bob Phillips" wrote in message
...
This is what I use

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.FormatConditions.Delete
With Target.EntireRow
.FormatConditions.Add Type:=xlExpression, Formula1:="TRUE"
With .FormatConditions(1)
With .Borders(xlTop)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = 5
End With
With .Borders(xlBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = 5
End With
End With
.FormatConditions(1).Interior.ColorIndex = 20
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
'the View Code option from the menu, and paste the code in.

--

HTH

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


"Pogo" wrote in message
...
I want to be able to highlight the whole row if any cell in a worksheet

is
selected. Is this possible. If so how would you do it. Excel is not my

field
so I need a simple solution.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Highlight lowest number Amber M Excel Discussion (Misc queries) 2 January 12th 05 12:19 AM
Highlight Data DJ Excel Discussion (Misc queries) 2 December 8th 04 01:45 AM
HELP ME !! PLEASE!! How do I highlight a cell when it reaches a va ANDREW_B Excel Worksheet Functions 1 December 2nd 04 11:14 AM
Highlight Active Cell Db1712 Excel Discussion (Misc queries) 1 November 26th 04 01:14 PM
Auto Highlight a Row carl Excel Worksheet Functions 5 November 22nd 04 11:42 PM


All times are GMT +1. The time now is 09:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"