Count periods in a word

C

carim.fam

Hi,

I am trying to come up with a VBA formula, which counts the number of
periods in a specific word ...

Thanks in advance for your help

Cheers
Carim
 
M

Michael Bednarek

I am trying to come up with a VBA formula, which counts the number of
periods in a specific word ...

Assuming that strWord contains the word in question:
varWord = Split(strWord,".")
lngNDots = UBound(varWord) - LBound(varWord)
 
Top