Comment sélectionner un texte

LAHOU - 28 oct. 2001 à 19:09
 Bendes - 28 oct. 2001 à 20:54
J'aimerai s'avoir comment faire pour dans une variable sélectionner une partie d'un texte présente après un certain caractère et mettre cette partie dans une autre variable. Je sais c pas très clair !!!
Merci d'avance
Lahou
http://www.lahournere.fr.st

1 réponse

Pos = InStr(1, TaVariable, "Caractère recherché", vbTextCompare)

If Pos > 0 then
Tmp = Right(TaVariable, Len(TaVariable) - Pos)
end if

J'ai pas testé mais ça devrait fonctionner...
0
Rejoignez-nous