Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Conditional formatting

Hi Guys

I have looked in conditional formatting section but haven't been able to
find a solution to this problem.

I have a table of text imported daily into cells range A1:AA50
The latest data is that in column A
I therefore need to be able to move my cursor down or up column A at my
discression, and as the cursor moves to each new cell location, so the
background colour of all cells in the range with the matching text should
highlight.

Any idea??

--
Andre
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default Conditional formatting

Put this in ThisWorkbook, not in a module:

Private Sub Workbook_SheetSelectionChange( _
ByVal Sh As Object, ByVal Target As Range)
Dim rng As Range
Set rng = Sh.Range("A1:AA50")
rng.Cells.Interior.ColorIndex = 0
If Target.Column = 1 And _
Target.Cells.Count = 1 Then
For Each cell In rng
If cell = Target.Value Then
cell.Interior.ColorIndex = 8
End If
Next cell
End If
End Sub

--
Dan

On Apr 1, 9:56*am, Andre wrote:
Hi Guys

I have looked in conditional formatting section but haven't been able to
find a solution to this problem.

I have a table of text imported daily into cells range A1:AA50
The latest data is that in column A
I therefore need to be able to move my cursor down or up column A at my
discression, and as the cursor moves to each new cell location, so the
background colour of all cells in the range with the matching text should
highlight.

Any idea??

--
Andre

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
Conditional formatting--different formatting depending on cell con Tammy S. Excel Discussion (Misc queries) 3 March 30th 09 08:11 PM
Formatting Conditional Formatting Icon Sets The Rook[_2_] Excel Discussion (Misc queries) 3 March 7th 09 08:48 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


All times are GMT +1. The time now is 10:33 AM.

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"