excel - Vba Function that counts how many times a text is contained inside a string? -
i have specific question
there native vba function counts how many time text (such word or single character) repeats inside other text (string)?
it parameters 2 string values, example, , return integer/long value.
i looked among worksheet functions , couldn't find any. should make own one?
thanks much!
as doesn't exist in vba, should make own. can write loop using instr, counting number of iterations. should pretty performant won't have memory allocations, , vba's string functions fast.
Comments
Post a Comment