考虑:
Sub LastTwoWords()
Dim s As String
s = "Now is the time for all good men to come to the aid of the party"
ary = Split(s, " ")
MsgBox ary(UBound(ary) - 1)
MsgBox ary(UBound(ary))
End Sub
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1994 次 |
| 最近记录: |