gh4
XLDnaute Occasionnel
bonjour
voici le probleme pouuriez eclairer ma lanterne
With Worksheets("enreg").Range("f5:f5000")
Set c = .Find(Range("f1"), LookIn:=xlValues, After:=Range("f5"))
If Not c Is Nothing Then
firstAddress = c.Address
Do
Cells(lign, colon - 1) = "oui"
Cells(lign, colon) = "non"
Cells(lign, colon + 2) = "merci"
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress And flag = vbNo
en fonction de F1 j'aimerais remplacer les cellules trouver par "oui" "non" etc
mais ma fonction cells(lign,colon) ne fonctionne pas pourtant il me trouve bien la case avec firstadress
d'avance merci
cordialement
voici le probleme pouuriez eclairer ma lanterne
With Worksheets("enreg").Range("f5:f5000")
Set c = .Find(Range("f1"), LookIn:=xlValues, After:=Range("f5"))
If Not c Is Nothing Then
firstAddress = c.Address
Do
Cells(lign, colon - 1) = "oui"
Cells(lign, colon) = "non"
Cells(lign, colon + 2) = "merci"
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress And flag = vbNo
en fonction de F1 j'aimerais remplacer les cellules trouver par "oui" "non" etc
mais ma fonction cells(lign,colon) ne fonctionne pas pourtant il me trouve bien la case avec firstadress
d'avance merci
cordialement