A little convuluted but it seems to work. Just make sure that the column to
the right is clear first.
1st it separates the text>then puts the dot>then puts it back
together>deletes the helper column
Sub putdot()
Range("J2:J4").TextToColumns Destination:=Range("J2"), _
DataType:=xlDelimited, Space:=True
For Each c In Range("j2:k4")
If Len(c) = 1 Then c.Value = c & "."
Next c
For Each c In Range("j2:j4")
c.Value = c & " " & c.Offset(, 1)
Next c
columns("k").delete
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"SherryScrapDog" <(E-Mail Removed)> wrote in message
news:4B966F83-2D8C-4F17-8066-(E-Mail Removed)...
>I have many excel files that contain names for a genealogy project. These
> files were done by various people over the last 15-20 years and the names
> are
> in different formats. (I am loading these files into an Access database.)
> Since most of the files are entered with a period after initials , I am
> changing the files that do not have them entered this way to be consistant
> and also to match the name if it is already in the datbase. Here are some
> examples I am now changing manually:
> John B (change to John B.)
> B John (change to B. John)
> A (Change to A.)
> Is there a way to find these single-character initials? Is there a way to
> programatically add the period?
> Thanks in advance if you can help, Sherry