Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Removing vowels from words...

On 19 Dec, 09:42, "Bob Phillips" wrote:
If he didn't go backwards, that code would reverse the text, so you would
get __rcm ,llx ,lgg__ instead of __ggl, xcll, mcr__

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Duncan" wrote in message

...

On 19 Dec, 07:43, carlo wrote:
Maybe this function can help you:


'------------------------------------------------------
Function removeVowel(VowelWord As String) As String


Dim NoVowelWord As String


For L = Len(VowelWord) To 1 Step -1
If Mid(VowelWord, L, 1) = "a" Or _
Mid(VowelWord, L, 1) = "e" Or _
Mid(VowelWord, L, 1) = "i" Or _
Mid(VowelWord, L, 1) = "o" Or _
Mid(VowelWord, L, 1) = "u" Then
Else
NoVowelWord = Mid(VowelWord, L, 1) & NoVowelWord
End If
Next L


removeVowel = NoVowelWord


End Function
'------------------------------------------------------


It returns the word without vowels


Cheers Carlo


On Dec 19, 4:35 pm, 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.


Why is the loop stepping backwards?


Only because he is appending to the output string backwards too. Just
seems a bit odd.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to do those lines on top of vowels? stars Excel Discussion (Misc queries) 1 June 15th 06 07:54 AM
removing a space between words in a cell JenBasch Excel Worksheet Functions 3 September 20th 05 12:39 AM
removing cells with certain words in it Matthew Kramer Excel Programming 2 September 13th 04 10:14 AM
removing words/phrase from sentences Runt Excel Programming 7 August 23rd 04 07:51 AM
Removing rows featuring certain words clane Excel Programming 3 July 16th 04 03:12 PM


All times are GMT +1. The time now is 08:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"