excel vba - remove any combinations of characters from vba string -
i have string value of ;00330508911=010403954? in excel vba remove characters except second set of digits, being 010402600. have tried many other alternatives no luck, appreciated.
assuming question 'how strip out number between equals sign , question mark', it's basic string manipulation:
public function secondnumber(inputstr string) string 'text after equals sign = mid(inputstr, instr(1, inputstr, "=") + 1, 100) 'and before question mark b = mid(a, 1, instr(1, a, "?") - 1) secondnumber = b end function
Comments
Post a Comment