Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Somehow my question got changed?
I like to thank the Big Guns (developers) for their answer but May I offer a more humble solution. I doesn't work properly, so if someone could look at it I would appreciate it. '-------------------------------------------------------------------- Sub Macro1Find() 'Clear the current range Range("B1:F6").Select Selection.Interior.ColorIndex = xlNone For i = 1 To 10 ' Look at values in A1 to A10 Lookupvalue = Cells(i, 1).Value With Range("B2:F6") Set C = .Find(Lookupvalue, LookIn:=xlValues) If Not C Is Nothing Then '(if match then highlight the cell in range} Range(C.Address).Select With Selection.Interior .ColorIndex = 39 .Pattern = xlSolid End With End If End With Next End Sub '------------------------------------------------------------------------ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sort problem - part2 | Excel Programming | |||
Search multiple values to return single values | Excel Worksheet Functions | |||
Search/Filter to find values in another range based on two cell values | Excel Programming | |||
find largest data (part2) hard work.. | Excel Programming | |||
How do I search thr'o column and put unique values in differnt sheet and sum corresponding values in | Excel Programming |