<p>测试代码:</p><p><br/>Sub test()<br/>Dim str, str1, str2 As String<br/>Dim j%<br/> str = InputBox("请输入级档", "查询", "27-1")<br/> j = InStr(1, str, "-", vbTextCompare)<br/> str1 = Left(str, j - 1)<br/> str2 = Right(str, Len(str) - j)<br/> If 级别工资(str1, str2) <> 0 Then<br/> MsgBox str1 & "级" & str2 & "档的级别工资是:" & 级别工资(str1, str2) & "元。", 0 + 64, "恭喜发财 ^_^"<br/> End If<br/>End Sub</p><p><br/></p>不足之处,请大家修改完善!
[此贴子已经被作者于2008-5-29 12:32:25编辑过] |