Excel Column Sort
Solved/Closed
Related:
- Excel Column Sort
- Chrome sort bookmarks alphabetically - Guide
- Excel marksheet - Guide
- Number to words in excel - Guide
- Excel apk for pc - Download - Spreadsheets
- Kernel for excel - Download - Backup and recovery
2 responses
aquarelle
Posts
7140
Registration date
Saturday April 7, 2007
Status
Moderator
Last seen
March 25, 2024
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