关于大小写的问题
如何将标点以后的字母从小写改为大写啊~,并打印出来,希望大家指点下啊~~原题是,输入一段文章,将每个单词的首字母从小写改为大写~
Private Sub Command1_Click()
Dim para As String, c As String, e As String, i As Integer, tot As Integer
para = Lcase(Text1)
tot = Len(para)
Mid(para, 1, 1) = Ucase(Left(para, 1))
For i = 2 To tot
c = Mid(para, i, 1)
If Instr(1, " .:?!""", c) > 0 Then
e = Mid(para, i + 1, 1)
Mid(para, i + 1, 1) = Ucase(e)
End If
Next i
Text2 = para
End Sub