Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Counting blanks in a string
In VBA, I know there is a simple way of counting blanks in a string, but
I can't remember it. Anyone know how to do this? thanks xnman |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Counting blanks in a string
Hi
one way: len(your_str)-len(replace(your_str," ","")) -- Regards Frank Kabel Frankfurt, Germany "xnman" schrieb im Newsbeitrag ... In VBA, I know there is a simple way of counting blanks in a string, but I can't remember it. Anyone know how to do this? thanks xnman |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Counting blanks in a string
Len(MyString)-Len(WorksheetFunction.Substitute(MyString," ",""))
-- Vasant "xnman" wrote in message ... In VBA, I know there is a simple way of counting blanks in a string, but I can't remember it. Anyone know how to do this? thanks xnman |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Counting Blanks | Excel Discussion (Misc queries) | |||
counting the number of instances of a string within another string | Excel Worksheet Functions | |||
Counting blanks, either 1, 2 or 3 | Excel Worksheet Functions | |||
Counting Blanks | Excel Worksheet Functions | |||
remove blanks from a string of chars within a cell? | Excel Discussion (Misc queries) |