Hello i have a string that might have multi spaces between the string but random spaces such as
test er <more than 1 space > kllk <more than 1 space > l
b <more than 1 space > w e <more than 1 space > tttttt klfdgd
klllll <more than 1 space > lll
* this thread is removing the multi spaces to 1 space. hence <the more than 1 space>
i wanted to replace all the spaces that are more than 1 to only 1 space so that the string becomes
test er kllk l
b w e tttttt klfdgd
klllll lll
I was going to going to use REPLACE function in VBA but this would not work as number of spaces varies. Any quick function i can use?
test er <more than 1 space > kllk <more than 1 space > l
b <more than 1 space > w e <more than 1 space > tttttt klfdgd
klllll <more than 1 space > lll
* this thread is removing the multi spaces to 1 space. hence <the more than 1 space>
i wanted to replace all the spaces that are more than 1 to only 1 space so that the string becomes
test er kllk l
b w e tttttt klfdgd
klllll lll
I was going to going to use REPLACE function in VBA but this would not work as number of spaces varies. Any quick function i can use?