! Finding A Char From A Variable !

  • Thread starter Thread starter Wembly
  • Start date Start date
W

Wembly

Thanks everyone for all your help.

I was also wondering how I could possibly do a count of
the number of the search/delimiter char in the string?

Thanks,
Wembly
 
Wembly,
You should read the code we post and try to understand it -
in my example
Dim Myarray
Myarray = Split(InputStr, Delimiter)

'Add this line to get a count of the delimiters found
NumDelimiters = ubound(MyArray) +1 ' since arrays are zero baed, add 1

......

HS
 
Back
Top