Highlight values of column B in column D
Closed
kansara
Posts
2
Registration date
Thursday 24 September 2009
Status
Member
Last seen
25 September 2009
-
25 Sep 2009 à 01:50
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 25 Sep 2009 à 22:40
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 25 Sep 2009 à 22:40
Related:
- Highlight values of column B in column D
- Excel column number - Guide
- How to delete a column in word - Guide
- Tweetdeck expand column - Guide
- Excel count occurrences of string in column - Guide
- Based on the values in cells b77 b88 ✓ - Excel Forum
1 response
venkat1926
Posts
1863
Registration date
Sunday 14 June 2009
Status
Contributor
Last seen
7 August 2021
811
25 Sep 2009 à 22:40
25 Sep 2009 à 22:40
right click the sheet TAB and lcick VIEWCODE. in that window copy paste this code
This is an event code.
now type any number in B2 and see what happen in column D
This is an event code.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim cfind As Range
Range("d1:d9").Interior.ColorIndex = xlNone
If Target.Address <> "$B$2" Then Exit Sub
With Range("d1:d10")
Set cfind = .Cells.Find(what:=Target.Value, lookat:=xlWhole)
If Not cfind Is Nothing Then cfind.Interior.ColorIndex = 3
End With
End Sub
now type any number in B2 and see what happen in column D