Highlight values of column B in column D
Closed
kansara
Posts
2
Registration date
Thursday September 24, 2009
Status
Member
Last seen
September 25, 2009
-
Sep 25, 2009 at 01:50 AM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Sep 25, 2009 at 10:40 PM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Sep 25, 2009 at 10:40 PM
Related:
- Highlight values of column B in column D
- Display two columns in data validation list but return only one - Guide
- How to delete column in word - Guide
- Tweetdeck remove column - Guide
- Folder highlight - Download - Customization
- Excel count occurrences of string in column - Guide
1 response
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Sep 25, 2009 at 10:40 PM
Sep 25, 2009 at 10:40 PM
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