[Excel] Macro de suppression #N/A

Résolu/Fermé
Napalawow Messages postés 38 Date d'inscription mardi 29 avril 2008 Statut Membre Dernière intervention 28 mai 2008 - 28 mai 2008 à 10:08
Napalawow Messages postés 38 Date d'inscription mardi 29 avril 2008 Statut Membre Dernière intervention 28 mai 2008 - 28 mai 2008 à 10:46
Bonjour,

Voila j'ai une macro qui devrait me permettre de supprimer les case lorsqu'elles contiennent un > #N/A
Sub suppppppppppp()

Dim cv2 As Integer

    'For cv2 = Cells(65536, 12).End(xlUp).Row To 1 Step -1
    For cv2 = 438 To 442 Step 1
                If Cells(cv2, 12).Value = "#N/A" Then
                            Cells(cv2, 12).Value = ""
                End If
    Next cv2
End Sub

MAIS voila QUAND LA CELLULE Actif du programme passe devant le #N/A LE programme bugg

Si qq1 saurait pq

Merci d'avance!!
A voir également:

2 réponses

zavenger Messages postés 811 Date d'inscription vendredi 29 février 2008 Statut Membre Dernière intervention 20 avril 2012 161
28 mai 2008 à 10:34
salut,

je te proposerais

If IsError(Cells(cv2, 12)) Then
Cells(cv2, 12).Value = ""
End If
0
Napalawow Messages postés 38 Date d'inscription mardi 29 avril 2008 Statut Membre Dernière intervention 28 mai 2008 1
28 mai 2008 à 10:46
OK merci beacoup Zavenger!! really


Ca marche impeccable sans de bugg.

MErci !
0