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

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -