InputBox Examples


Example 1

Dim sReturn As String 
sReturn = InputBox("Please enter the name of the file : ")
microsoft excel docs

Example 2

Dim sReturn As String 
sReturn = InputBox("InputBox Text", _
                   "InputBox Title")
microsoft excel docs

Example 3

Dim sReturn As String 
sReturn = InputBox("Please enter the website URL", _
                   "Website URL", _
                   "https://bettersolutions.com")
microsoft excel docs

Example 4

Dim sReturn As String 
sReturn = InputBox("Press the Help button for more help", , , , , _
                   "C:\temp\Help.chm", 1)
microsoft excel docs

© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext