OVH Cloud OVH Cloud

Equivalent Find

1 réponse
Avatar
Yvan
Bonjour,

J'ai un problème sur la dernière ligne. Excel ne reconnait pas l'instruction
Find. Par quoi dois-je la remplacer ???

Nom = ActiveWorkbook.Name
Cells(1, 1) = Nom
Cells(1, 1) = Left(Cells(1, 1), Find(".", Cells(1, 1) - 1))

--
Merci pour vos réponses.

1 réponse

Avatar
Ilan
Bonjour,
Nom = ActiveWorkbook.Name
Cells(1, 1) = Nom
' Si Le caractere "." est trouve et n'est pas le premier caractere

' blablabla blablabla
if Instr(1,Cells(1,1),".")>1 then
Cells(1, 1) = Left(Cells(1, 1), Instr(1,Cells(1,1),".") -1)



Bonjour,

J'ai un problème sur la dernière ligne. Excel ne reconnait pas l'instruction
Find. Par quoi dois-je la remplacer ???

Nom = ActiveWorkbook.Name
Cells(1, 1) = Nom
Cells(1, 1) = Left(Cells(1, 1), Find(".", Cells(1, 1) - 1))

--
Merci pour vos réponses.