Can textbox value be converted from "Alpha Bravo Charlie" to "ABC"?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jcrist30
    New Member
    • Feb 2012
    • 10

    Can textbox value be converted from "Alpha Bravo Charlie" to "ABC"?

    I am wondering if there is a way to convert the value of a text box to an acronym represented by the first letter of each word in the textbox.

    i.e. User would input "Alpha Bravo Charlie" and this could be converted elsewhere to "ABC".

    Any help would be great! :)
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Use VBA to SPLIT() the string by spaces and take the LEFT() one character from each word.

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32663

      #3
      Certainly I know of no way to handle this in a single step unless a procedure is written for the purpose. Rabbit's suggestion seems as good as you'll get.

      Comment

      • Mihail
        Contributor
        • Apr 2011
        • 759

        #4
        Or collect only the capitals.

        Comment

        • NeoPa
          Recognized Expert Moderator MVP
          • Oct 2006
          • 32663

          #5
          Don't confuse the example with the question Mihail. We only know for sure that the initials are required, not that the initials will always be capitalised ;-)

          Comment

          • Mihail
            Contributor
            • Apr 2011
            • 759

            #6
            Correct, NeoPa.
            So my vote is for Rabbit too :)

            Comment

            Working...