Search notes:

VBA function: inputBox

inputBox() lets the user enter a string.
option explicit

sub main() ' {

    dim val as string
    val = inputBox("Enter a value")
    debug.print("You entered: " & val)

    val = inputBox("Enter a value", "Title")
    debug.print("You entered: " & val)

    val = inputBox("Enter a value", "Title", "Default value")
    debug.print("You entered: " & val)

  '
  ' Indicate x and y coordinates
  '
    val = inputBox("Enter a value", "Title", "Default value", 100, 50)
    debug.print("You entered: " & val)

end sub ' }
Github repository about-VBA, path: /functions/inputBox.bas

See also

msgBox
The special Excel Application function inputBox (that allows also to enter ranges.
functions

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1740091014, '18.188.125.151', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/VBA/functions/inputBox(70): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78