Bonjour,
Le type retourné par la fonction testf n'est pas spécifié ..... je ne sais pas si c'est gênant sur les versions précédentes mais je le forcerai ....
Function testf() As Integer
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| With Columns(NbCol)
Set Cellule = .Find(What:="test", LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False)
End With
testf = 0
If Cellule Is Nothing Then
' Peut-être rajouter celà
Set Cellule = .Find(What:="test", LookIn:=xlFormula, LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False)
End If
If Cellule Is Nothing Then
MsgBox "Not found"
Else
testf = Cellule.Row
End If |
Partager