Sub test2()<br/>Dim str As String<br/> str = InputBox("请输入级档", "查询", "27-1")<br/> If 级别工资(str) = "" Then MsgBox "没有该级别!", vbExclamation: Exit Sub<br/> MsgBox Join(Split(str, "-"), "级") & "档的级别工资是:" & 级别工资(str) & "元。", vbInformation<br/>End Sub