Bonjour,
Je sollicite votre précieuse aide pour adapter cet outil, afin qu'il puisse tourner sur les versions récentes d'Excel (2007 et plus...) et ainsi supporter plus de 65536 lignes, limite d'Excel 2003
J'ai tenté de le convertir en .xlsm, il a supporté 1.048.576 mais au moment de l'exécution il affiche une erreur : "Erreur d'exécution '13' : Incompatibilité de type"
https://forum.excel-pratique.com/download/file.php?id=86318
Cordialement
Débogage :
Private Sub cmdMAJliste_Click()
Dim a, b
Dim monDico1 As Object, monDico2 As Object
Dim c
Application.ScreenUpdating = False
Range("C1:C" & [C65536].End(xlUp).Row).Select
a = Range("B1:B" & [B65536].End(xlUp).Row)
Set monDico1 = CreateObject("Scripting.Dictionary")
For Each c In a
monDico1(c) = ""
Next c
b = Range("A1:A" & [A65536].End(xlUp).Row)
Set monDico2 = CreateObject("Scripting.Dictionary")
For Each c In b
If Not monDico1.exists(c) Then monDico2(c) = ""
Next c
[C1].Resize(monDico2.Count, 1) = Application.Transpose(monDico2.keys)
Set monDico1 = Nothing: Set monDico2 = Nothing
End Sub