📜  excel vba 转大写 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:53.440000             🧑  作者: Mango

代码示例1
Dim sText As String
sText = "Run, forrest run"
MsgBox StrConv(sText, vbProperCase)   ' Run, Forrest Run
MsgBox StrConv(sText, vbLowerCase)    ' run, forrest run
MsgBox StrConv(sText, vbUpperCase)    ' RUN, FORREST RUN
MsgBox UCase(sText)                   ' RUN, FORREST RUN