|
首字母大写
借鉴了!
稍稍改动,可以转换成首字母大写的样式(不是只一个字母)
Private Function GetInitial(py As String) As String
Dim Char1 As String
Dim Char2 As String
Dim i As Integer
Char1 = Left(py, 1)
Char2 = Mid(py, 2, Len(py) - 1)
For i = 0 To UBound(sNotation1)
Char1 = Replace(Char1, sNotation1(i), dNotation(i))
Next
GetInitial = UCase(Char1) + Char2
If Not pvOnlyOneChar Then
Select Case Char1
Case "z", "c", "s"
' If Char2 = "h" Then GetInitial = GetInitial + Char2
End Select
End If
End Function
发现一些机上的兼容性问题
VISTA下OFFICE2007又同时安装OFFICE2003,会出现OLE错误
WIN2000下安装OFFICE2002拖动的时候报错 |
|