What is the syntax to use input boxes?

InputBox(prompt, title, default, xpos, ypos, helpfile, context)
‘prompt – message of the input box; mandatory parameter with maximum of 1024 characters
‘default – automatic default text that populates the textbox shown to user; optional parameter
‘XPos – coordinate of where box is horizontally; default is centered
‘YPos – coordinate of where the box appears vertically; default is centered
'example
Dim name As String
name = InputBox("What is your name?", "Name Input", "John Doe")

unnamed (4).jpg

 

Advertisements