473,386 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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! :)
Mar 28 '12 #1

✓ answered by Rabbit

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

5 1561
Rabbit
12,516 Expert Mod 8TB
Use VBA to SPLIT() the string by spaces and take the LEFT() one character from each word.
Mar 28 '12 #2
NeoPa
32,556 Expert Mod 16PB
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.
Mar 28 '12 #3
Mihail
759 512MB
Or collect only the capitals.
Mar 29 '12 #4
NeoPa
32,556 Expert Mod 16PB
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 ;-)
Mar 29 '12 #5
Mihail
759 512MB
Correct, NeoPa.
So my vote is for Rabbit too :)
Mar 29 '12 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Rob | last post by:
The code below is almost there (it does change the value for EVERY ORDER).... I simply want to be able to change the value of the Delivered Tag to Yes. BUT ONLY if the Order is equal to 123456 ? ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.