Signature (Visual Basic / VBA)
Public Function ReverseCharactersEveryWord( _
ByVal vPhrase As Variant _
, Optional ByVal vCharSeps As Variant _
) As Variant
Code Examples
ReverseCharactersEveryWord("This is a test.") = "sihT si a .tset"
ReverseCharactersEveryWord(ReverseString(Gettysburg))
Parameters
| Parameter | Description |
|---|---|
| vPhrase | String containing the phrase in which each space-separated word will have its characters reversed. Function returns Null if vPhrase is Null or cannot be fixed up to a String. |
| vCharSeps | String containing characters which are considered to separate words. vCharSeps defaults to space, tab, carriage return, and line feed if it is missing or Null or cannot be fixed up to a String. |
Notes & Version History
| Gem | To reverse the words in a string, combine this function with ReverseString as in: |