regards,
Julian
You can define an user function like:
Public Function SentenceCase(Stc As String)
SentenceCase = UCase(Left(Stc, 1)) & Right(Stc, Len(Stc) - 1)
End Function
HTH
"julian" <ju...@tm.net.my> escreveu na mensagem
news:3ca7200e.01101...@posting.google.com...
Regards,
Héctor.
regards,
julian
"H?tor Miguel" <oro...@cybercable.net.mx> wrote in message news:<eB7ISHiUBHA.1488@tkmsftngp07>...
"julian" <ju...@tm.net.my> wrote in message
news:3ca7200e.01101...@posting.google.com...
Sub Test()
Dim v As Variant
Dim S As String
Dim J As Long
[A1] = "this is one sentence. this is another. and this is third
sentence."
S = [A1]
v = Split(S, ".")
For J = 0 To UBound(v)
S = Application.Trim(v(J))
S = StrConv(S, vbLowerCase)
S = UCase(Left$(S, 1)) & Mid$(S, 2)
v(J) = IIf(J > 0, Space(2) & S, S)
Next
[A2] = Application.Trim(Join(v, "."))
End Sub
--
Dana DeLouis Windows Me & Office XP
"julian" <ju...@tm.net.my> wrote in message
news:3ca7200e.01101...@posting.google.com...
"Dana DeLouis" <ng_...@hotmail.com> wrote in message news:<uozj4JzUBHA.2076@tkmsftngp03>...