Код:
Код: Выделить всё
Function InputBox(Prompt As String, default As String, Optional Buttons, Optional Title, Optional ByVal SecondsToWait As Integer)
Dim wshShell
Set wshShell = CreateObject("WScript.Shell")
InputBox = wshShell.PopUp(Prompt, default, SecondsToWait, Title, Buttons) 'ошибка здесь
End Function
Sub zapusk()
a = InputBox("Тестирование", " ", vb, "Сообщение!", 2) 'здесь параметры должны быть соблюдены
End Sub