cs_Fabio
Messages postés12Date d'inscriptionmercredi 23 janvier 2002StatutMembreDernière intervention 2 février 2002 2 févr. 2002 à 09:54
Tu devrais plutôt essayer comme cela :
With Worksheets("Histo").Cells
Set cel = .Find(What:=DateValue("29/01/2002"), _
After:=ActiveCell, _
LookIn:=xlValues, _
LookAt:=xlPart, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not cel Is Nothing Then
adrToFisrtcel = cel.Address
Do
cel.Activate
Set cel = .FindNext(cel)
Loop While cel.Address <> adrToFisrtcel _
And Not cel Is Nothing
End If
End With
Salut.
cs_Fabio
Messages postés12Date d'inscriptionmercredi 23 janvier 2002StatutMembreDernière intervention 2 février 2002 2 févr. 2002 à 10:02
Désolé pour la mise en page du msg préc. voilà en plus clair :
With Worksheets("Histo").Cells
Set cel = .Find(What:=DateValue("29/01/2002"), _
After:=ActiveCell, _
LookIn:=xlValues, _
LookAt:=xlPart, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not cel Is Nothing Then
adrToFisrtcel = cel.Address
Do
cel.Activate
Set cel = .FindNext(cel)
Loop While cel.Address <> adrToFisrtcel _
And Not cel Is Nothing
End If
End With