Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 37
Default HOW TO CHANGE ROW COLOUR

I want that current row colour with its header change, when i move to nex the
previous row change to default. is it possible.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200705/1

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 903
Default HOW TO CHANGE ROW COLOUR

Huh? Some possibilities without a decent
description of what you want to do.

RowLiner Cell Highlighting Add In
http://www.cpearson.com/excel/RowLiner.htm

Conditional Formatting
http://www.mvps.org/dmcritchie/excel/condfmtl.htm

Event Macro
http://www.mvps.org/dmcritchie/excel/event.htm

---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"adeel via OfficeKB.com" <u32736@uwe wrote in message news:729b8af433092@uwe...
I want that current row colour with its header change, when i move to nex the
previous row change to default. is it possible.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200705/1



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,058
Default HOW TO CHANGE ROW COLOUR

Put the following in the Worksheet coding area:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlNone
Target.EntireRow.Interior.ColorIndex = 6
End Sub

as you navagate with either mouse click or arrow key, the selected row will
be hight-lighted.
--
Gary''s Student - gsnu200723


"adeel via OfficeKB.com" wrote:

I want that current row colour with its header change, when i move to nex the
previous row change to default. is it possible.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200705/1


  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default HOW TO CHANGE ROW COLOUR

Just as long as OP is aware that this will wipe out any currently colored cell
formatting on the sheet.


Gord Dibben MS Excel MVP

On Wed, 23 May 2007 09:40:01 -0700, Gary''s Student
wrote:

Put the following in the Worksheet coding area:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlNone
Target.EntireRow.Interior.ColorIndex = 6
End Sub

as you navagate with either mouse click or arrow key, the selected row will
be hight-lighted.


  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10,124
Default HOW TO CHANGE ROW COLOUR


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.FormatConditions.Delete
With Target.EntireRow
.FormatConditions.Add Type:=xlExpression, Formula1:="TRUE"
.FormatConditions(1).Interior.Color Index = 6
End With

End Sub

--
Don Guillett
SalesAid Software

"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
Just as long as OP is aware that this will wipe out any currently colored
cell
formatting on the sheet.


Gord Dibben MS Excel MVP

On Wed, 23 May 2007 09:40:01 -0700, Gary''s Student
wrote:

Put the following in the Worksheet coding area:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlNone
Target.EntireRow.Interior.ColorIndex = 6
End Sub

as you navagate with either mouse click or arrow key, the selected row
will
be hight-lighted.





  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10,124
Default HOW TO CHANGE ROW COLOUR

Spell checker may have changed. Use this

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.FormatConditions.Delete
With Target.EntireRow
.FormatConditions.Add Type:=xlExpression, Formula1:="TRUE"
.FormatConditions(1).Interior.ColorIndex = 20
End With

End Sub


--
Don Guillett
SalesAid Software

"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
Just as long as OP is aware that this will wipe out any currently colored
cell
formatting on the sheet.


Gord Dibben MS Excel MVP

On Wed, 23 May 2007 09:40:01 -0700, Gary''s Student
wrote:

Put the following in the Worksheet coding area:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlNone
Target.EntireRow.Interior.ColorIndex = 6
End Sub

as you navagate with either mouse click or arrow key, the selected row
will
be hight-lighted.



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
Change font colour for whole row Saleee Excel Worksheet Functions 2 October 10th 06 06:41 PM
change a cell background colour to my own RGB colour requirements Stephen Doughty Excel Discussion (Misc queries) 4 June 16th 06 01:08 PM
HOW do i make a box change colour kayleigh Excel Discussion (Misc queries) 2 September 26th 05 01:41 PM
COLOUR CHANGE IS A CELL Mav Excel Discussion (Misc queries) 1 April 23rd 05 11:22 AM
Change Sheet Tab Colour Jenai Excel Discussion (Misc queries) 1 April 22nd 05 06:12 PM


All times are GMT +1. The time now is 06:02 AM.

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

About Us

"It's about Microsoft Excel"