Find out number of occurance of Substring within a string

June 13, 2010

Syntax--
Call OSS(str,substring)


Function OSS(str,sbstring)
occ=split(str,sbstring)
oss=ubound(occ)
End Function

Exp--msgbox OSS("anianianianiani","ani")

You Might Also Like

0 comments