Re:Récupérer une partie d'un mot dans une cellule
bonjour
Voici la macro tant attendue :
Function ExtractionChaine(pstrOrigine As String) As Long
Dim lintLen As Integer, lIdx As Integer, lstrFinal
lstrFinal = ''
For lIdx = 1 To Len(pstrOrigine)
Select Case Mid(pstrOrigine, lIdx, 1)
Case '0' To '9'
lstrFinal = lstrFinal & Mid(pstrOrigine, lIdx, 1)
Case Else
End Select
Next lIdx
ExtractionChaine = CLng(lstrFinal)
End Function
Bonne continuation ! ! !