B
Boodahbellie
I have a column of first names that I want to condense down to the first
letter only (i.e. Chris becomes C). I have some code that I wrote, but it
doesn't work and I want to process every cell in that column that has a
value. Any help here would be appreciated...
Sub TrimText()
Dim FirstName As String
FirstName = ActiveCell.Text
If Len(FirstName) > 1 Then
FirstName = Left(ActiveCell.Text, 1)
ActiveCell.Text = FirstName
End If
End Sub
Also, is it possible to create macros that aren't imbedded in each XLS file?
I'd like to have several files that I can run this macro on.
Sean
letter only (i.e. Chris becomes C). I have some code that I wrote, but it
doesn't work and I want to process every cell in that column that has a
value. Any help here would be appreciated...
Sub TrimText()
Dim FirstName As String
FirstName = ActiveCell.Text
If Len(FirstName) > 1 Then
FirstName = Left(ActiveCell.Text, 1)
ActiveCell.Text = FirstName
End If
End Sub
Also, is it possible to create macros that aren't imbedded in each XLS file?
I'd like to have several files that I can run this macro on.
Sean