Bonjour Seb,
Si TextBox1 dans la fenêtre UserForm1 par exemple contient ton texte à convertir en nombre dans la variable "nombre", tu peux coder
If isnumeric(Userform1.TextBox1.Text) then
nombre=CInt(Userform1.TextBox1.Text) ' Si entier
nombre=CDec(Userform1.TextBox1.Text) ' Si nombre décimal
endif
Cordialement.
Omicron