Function String Words Class

AcronymString

Converts a string into its acronym by returning the first alphanumeric character from each sequence of alphanumeric characters.

Signature (Visual Basic / VBA)

Public Function AcronymString( _
    ByVal vPhrase As Variant _
    ) As Variant

Code Example

    AcronymString("Hello Joe") = "HJ"
    AcronymString("This is a test.") = "Tiat"

Parameters

Parameter Description
vPhrase String containing the words which will be formed into an acronym. Function returns Null if vPhrase is Null or cannot be fixed up to a String.

Notes & Version History

Note Function uses the built-in character classification routines to determine which characters are alphanumeric.