Bonjour,
Je souhaite faire fonctionner une macro mais son exécution s’interrompt toujours pas l'erreur "incompatibilité de type".
Voici l'extrait douteux du code avec en rouge la zone de débogage indiquée par excel.
Pouvez-vous m'aider ?
c(2).Resize(h) = "=IFERROR(VLOOKUP(RC1,'" & ficha & f & "'!R4C1:R20000C22,21,0),0)"
If c(2).Resize(h) = 0 Then
For n = 0 To -10
c(2, 2).Resize(h) = "=IFERROR(VLOOKUP(RC1,'" & fichb & f & "'!R4C1:R20000C22,22,0),0)"
Exit For
c(2, 2).Resize (h) <> 0
Next
Else: c(2, 2).Resize(h) = "=IFERROR(VLOOKUP(RC1,'" & ficha & f & "'!R4C1:R20000C22,22,0),0)"
End If
End If
Next
Merci d'avance,
Je souhaite faire fonctionner une macro mais son exécution s’interrompt toujours pas l'erreur "incompatibilité de type".
Voici l'extrait douteux du code avec en rouge la zone de débogage indiquée par excel.
Pouvez-vous m'aider ?
c(2).Resize(h) = "=IFERROR(VLOOKUP(RC1,'" & ficha & f & "'!R4C1:R20000C22,21,0),0)"
If c(2).Resize(h) = 0 Then
For n = 0 To -10
c(2, 2).Resize(h) = "=IFERROR(VLOOKUP(RC1,'" & fichb & f & "'!R4C1:R20000C22,22,0),0)"
Exit For
c(2, 2).Resize (h) <> 0
Next
Else: c(2, 2).Resize(h) = "=IFERROR(VLOOKUP(RC1,'" & ficha & f & "'!R4C1:R20000C22,22,0),0)"
End If
End If
Next
Merci d'avance,