Excel Column Sort
Solved/Closed
Related:
- Excel Column Sort
- Chrome sort bookmarks - Guide
- Excel mod apk for pc - Download - Spreadsheets
- Excel count occurrences of string in column - Guide
- Excel column to number - Guide
- Kernel for excel repair - Download - Backup and recovery
2 responses
aquarelle
Posts
7181
Registration date
Saturday April 7, 2007
Status
Moderator
Last seen
July 18, 2025
491
Apr 19, 2009 at 08:01 AM
Apr 19, 2009 at 08:01 AM
Hi,
Try with this macro, I hope it will work as you want :
Best regards
Try with this macro, I hope it will work as you want :
Sub CompareColumnsAB()
Set cl2 = Range("A:A")
Set cl1 = Range("B:B")
For Each c In cl2
MyValue = c.Value
If MyValue <> "" Then
Set Plage = cl1.Cells.Find(MyValue, lookat:=xlWhole)
If Not Plage Is Nothing Then
c.Range("A1").Interior.ColorIndex = xlNone
Else: c.Range("A1").Interior.ColorIndex = 4
End If
End If
Next
End Sub
Best regards