Hello,
I am having a hard time finding a code to only give me the first letter of the first 3 words even if there is more then 3 words and to include this - as a space. e.i.
Consult-Archive LV = CAL
Ambulance Rec-scanned LV = ARS
eDetailed Pt Charting LV = ePC
Here is the code that I am currentyly using
Function Ext(myText As String) As String
Dim i As Integer, myWord As String
myWord = Left(myText, 1)
For i = 2 To Len(myText)
If Mid(myText, i, 1) = " " Then
myWord = myWord & Mid(myText, i + 1, 1)
End If
Next i
Ext = myWord
End Function
and the results I am getting is this
Consult-Archive LV = CL
Ambulance Rec-scanned LV = ARL
eDetailed Pt Charting LV = ePCL
Thanks For your Help
I am having a hard time finding a code to only give me the first letter of the first 3 words even if there is more then 3 words and to include this - as a space. e.i.
Consult-Archive LV = CAL
Ambulance Rec-scanned LV = ARS
eDetailed Pt Charting LV = ePC
Here is the code that I am currentyly using
Function Ext(myText As String) As String
Dim i As Integer, myWord As String
myWord = Left(myText, 1)
For i = 2 To Len(myText)
If Mid(myText, i, 1) = " " Then
myWord = myWord & Mid(myText, i + 1, 1)
End If
Next i
Ext = myWord
End Function
and the results I am getting is this
Consult-Archive LV = CL
Ambulance Rec-scanned LV = ARL
eDetailed Pt Charting LV = ePCL
Thanks For your Help