31-07-2009, 03:06 PM
Just for the fun of it, since we're fixing grammar mistakes.
I before E except after C
(I know there are exceptions, but eh
)
Btw Robin, hourglass is a noun, but it's one of the few exceptions that use an that doesn't start by a vowel.
I before E except after C
Code:
Dim Loc As Integer
If InStr(1, Word, "ei") 0 Or InStr(1, Word, "ie") 0 Then
For Loc = 2 To Len(Word)
If Mid(Word, Loc, 2) = "ie" And Mid(Word, Loc - 1, 1) = "c" Then
Word = Left(Word, Loc - 1) & "ei" & Right(Word, Len(Word) - Loc - 1)
ElseIf Mid(Word, Loc, 2) = "ei" And Mid(Word, Loc - 1, 1) "c" Then
Word = Left(Word, Loc - 1) & "ie" & Right(Word, Len(Word) - Loc - 1)
End If
Next Loc
End If
(I know there are exceptions, but eh

Btw Robin, hourglass is a noun, but it's one of the few exceptions that use an that doesn't start by a vowel.