Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
The following modification of my previous macro will allow you to select a column of item and it will put the results in the column to the right for all the selected cells. Sub Shorten() Dim T As Range, I As Integer, myWord As String For Each cell In Selection E = cell myWord = Left(E, 1) For I = 2 To Len(cell) If Mid(E, I, 1) = " " Then myWord = myWord & Mid(E, I + 1, 1) End If Next I cell.Offset(0, 1) = myWord Next cell End Sub -- Cheers, Shane Devenshire "VB_Sam" wrote: How can I extract first letter of each word in Excel XP? For example: I am a boy You are a girl Using the pseudo-function called acronym(), the result will become: IAAB YAAG I'm using Excel XP. Is there any function which can do it? If not, could anyone provide a macro for me? (I'm only a beginner in macro) Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
display one letter of a word in a cell | Excel Worksheet Functions | |||
Insert letter/no among word | Excel Discussion (Misc queries) | |||
Default Capital letter for 1st letter of a word | Excel Discussion (Misc queries) | |||
How do I count a named range for a specific word or acronym? | Excel Worksheet Functions | |||
How do I get the first letter of a word in excel | Excel Discussion (Misc queries) |