Bonjour
J'ai un soucis quand je lance ma macro pour effacer mes lignes en doublons.
J'ai l'erreur 429 qui apparait et au débogage j'ai : Set MonDico = CreateObject("Scripting.Dictionary") qui est surligner.
Je pense que c'est la version d'excel qui coince.
Merci de votre aide
Dim MonDico
Set MonDico = CreateObject("Scripting.Dictionary")
Application.ScreenUpdating = False
i = 2
Do While Cells(i, "F") <> ""
temp = Cells(i, "F")
If Not MonDico.Exists(temp) Then
MonDico.Add temp, temp
i = i + 1
Else
Rows(i).EntireRow.Delete
End If
Loop
Application.ScreenUpdating = True
J'ai un soucis quand je lance ma macro pour effacer mes lignes en doublons.
J'ai l'erreur 429 qui apparait et au débogage j'ai : Set MonDico = CreateObject("Scripting.Dictionary") qui est surligner.
Je pense que c'est la version d'excel qui coince.
Merci de votre aide
Dim MonDico
Set MonDico = CreateObject("Scripting.Dictionary")
Application.ScreenUpdating = False
i = 2
Do While Cells(i, "F") <> ""
temp = Cells(i, "F")
If Not MonDico.Exists(temp) Then
MonDico.Add temp, temp
i = i + 1
Else
Rows(i).EntireRow.Delete
End If
Loop
Application.ScreenUpdating = True