bjr à tous
dans la feuil1 j'ai un tableau
colonneA...............colonneB
....XX....................DD14
....DE....................SSEF
....RT....................GTF
....XX....................fff
....XX....................SS
....
dans la feuil2 j'ai un autre tableau
colonneA...............colonneB
....XX....................DD14
....RT....................GTF
....XX....................DD14
....XX....................SS
....DE....................SSEF
....AA....................QZA
....DE....................SSEF
....
j'ai bien développé plusieurs macros pour but :
-cherche combient de fois chaque couple (colonneA;colonneB) de feuil1 apparaissent dans feuil2
mais sans resultat.
pouvez vous m'aider
merci.

j'ai bien essayé cette macro mais ça ne donne rien
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Sub stock()
Dim x As Variant
x = 0
With Sheets("feuil2").Range("b2:b" & Sheets("feuil2").Range("b56653").End(xlUp).Row)
    Set c = .Find(Sheets("feuil1").Range("a2").Value, lookat:=xlWhole)
    If Not c Is Nothing Then
        FirstAddress = c.Address
        Sheets("feuil1").Activate
        Do
        If Sheets("feuil1").Range("b2").Value = Sheets("feuil2").Range("c" & FirstAddress.Row).Value Then
        x = x + 1
        End If
        Exit Do
    Set c = .FindNext(c)
    Loop While Not c Is Nothing And Sheets("feuil1").Range("b2").Value <> Sheets("feuil2").Range("c" & FirstAddress.Row).Value
    Sheets("feuil1").Range("c2").Value = x
    End If
End With
End Sub
pouvez vous me le corriger car je pense que je suis sur le bon chemin.
merci