Thread
:
Removing vowels from words...
View Single Post
#
10
Posted to microsoft.public.excel.programming
Ron Rosenfeld
external usenet poster
Posts: 5,651
Removing vowels from words...
On Tue, 18 Dec 2007 23:35:40 -0800 (PST),
wrote:
How to remove vowels from words? Fpr example, in one row we have
google, excell, macro,... and the result in another row is ggl, xcll,
mcr,... Thanks.
Here's a UDF:
==============================
Option Explicit
Function NV(str As String) As String
Dim re As Object
Set re = CreateObject("vbscript.regexp")
re.IgnoreCase = True
re.Global = True
re.Pattern = "[aeiou]"
NV = re.Replace(str, "")
End Function
==============================
--ron
Reply With Quote
Ron Rosenfeld
View Public Profile
Find all posts by Ron Rosenfeld