Header Ads

Find out number of occurance of Substring within a string

Syntax--
Call OSS(str,substring)


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

Exp--msgbox OSS("anianianianiani","ani")
Powered by Blogger.