InputBox( prompt[,[title][,[default][,xpos,ypos]]] )
InputBox returns a String.
- prompt
- A string that is displayed usually to ask for input type or information.
- title
- A string that is displayed at the top of the input dialog box.
- default
- A string that is displayed in the text box as the default entry.
- xpos and ypos
- The x and y coordinates of the relative location of the input dialog box.
Sub Main
Title$ = "Greetings"
Prompt$ = "What is your name?"
Default$ = ""
X% = 200
Y% = 200
N$ = InputBox$(Prompt$, Title$, Default$, X%, Y%)
End Sub