Function Character Types Class

IsVowel

Return True if the character with ASCII value vCharCode is a vowel. Within the pre-programmed definitions for the ANSI Windows character set, the characters A, E, I, O, U, a, e, i, o, u, and their accented foreign-language equivalents to be vowels.

Signature (Visual Basic / VBA)

Public Function IsVowel( _
    ByVal vCharCode As Integer _
    ) As Boolean

Code Example

    IsVowel(Asc("A")) = True
    IsVowel(Asc("B")) = False

Parameters

Parameter Description
vCharCode ASCII value of a character which is checked to determine if it is a vowel.

Notes & Version History

Note Function will generate a runtime error if vCharCode is < 0 (less than zero). Function will return False if vCharCode is > (greater than) 255.