This function extracts numbers from a string. It iterates through each character of the input string, appending digits to a return variable. It returns the numeric value of the concatenated digits.
This function extracts numbers from a string. It iterates through each character of the input string, appending digits to a return variable. It returns the numeric value of the concatenated digits.
This function extracts numbers from a string. It iterates through each character of the input string, appending digits to a return variable. It returns the numeric value of the concatenated digits.
Function Fun_ExtractNumber(ByVal inputString As String) As Double
Dim iCount As Integer
Dim sRetval As String: sRetval = vbNullString
For iCount = 1 To Len(inputString)
If IsNumeric(Mid(inputString, iCount, 1)) = True Then sRetval = sRetval & Mid(inputString, iCount, 1) End If Next iCount Fun_ExtractNumber = Val(sRetval) End Function