Function Extract(x$)
Dim L%, i%, y$, deb%
L = 4 'limite à adapter
Extract = "" 'pour éviter les valeurs zéro
For i = 1 To Len(x) + 1
y = Mid(x, i, 1)
If deb = 0 Then If IsNumeric(y) Then deb = i
If deb Then
If Not IsNumeric(y) Then
If i - deb > L Then Extract = Val(Mid(x, deb, i - deb)): Exit Function
deb = 0
End If
End If
Next
End Function