Hello world
I need your help please!! I'm going to explain the problem and my part of the code and if someone can help me it would be great.
I have an Excel sheet with 4 columns:
column A = user (user1,user2,user3......)
column B = functionalities ( fonc1, fonc2, fonc3.....)
column C = user (user1,user2,user3......)
column D = functionalities ( fonc1, fonc2, fonc3.....)
I want to compare in the same sheet the columns A, B and C, D at the same time knowing that columns C and D are the new version of the data of A and B and that the users of column C can change order and functionality
the result as you will see in my Excel file where there is the column of users (column F) and the fonctionnalitées_supprimées (column G) and the nouvelles_fonctionnalitées (column H)
When I run my code it doesn't show me the users only the new and removed features and not all of them.
The second problem is that when the user rows (columns A) are different from the user (column C) the code does not execute
Here is the excel file on the auel I work
and here is my code
Private Sub CommandButton2_Click()
Dim rngCell As Range
For Each rngCell In Range("B2:B2000")
If WorksheetFunction.CountIf(Range("D2:D2000"), rngCell) = 0 Then
Range("G" & Rows.Count). End(xlUp). Offset(1) = rngCell
End If
Next
For Each rngCell In Range("D2:D2000")
If WorksheetFunction.CountIf(Range("B2:B2000"), rngCell) = 0 Then
Range("H" & Rows.Count). End(xlUp). Offset(1) = rngCell
End If
Next
End Sub
compare.xlsm