vbscript InputBox

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!


  • InputBox(prompt[, title][, default][, xpos][, ypos][, helpfile, context])


promptText to display above the input field (usually an instruction as to what is required form the user).
titleCaption displayed in the titlebar of the input box.
defaultA placeholder for the text field, used as the return value if the user doesn't overwrite.
xposHorizontal distance in twips to display input box from the left edge of the screen.
yposVertical distance in twips to display input box from the top edge of the screen.
helpfileA string to determine the help file to be used in order to provide contextual help with the input box.
contextIf the helpfile argument is supplied, a context number must also be supplied to identify the appropriate help topic in the help file.


1All arguments except prompt are optional.
2helpfile and context are coupled - if one is supplied, the other must also be supplied.

Got any vbscript Question?