Browse » Home
Friday, January 13, 2012
How to Create an Input Box in Excel VBA
1. Click the Windows 'Start' button, 'All Programs,' 'Microsoft Office,' and the program you want to use to create an input box. After the software loads, open your document.
2. Click the 'Developer' tab or menu item.
3. Click 'VBA' to open the coding editor and locate the function or section of your file you want to use to display the input box.
4. Type the following code to create the input box: 'Dim input As String input= InputBox(Prompt:='Enter your name', Title:='Name Input')' This code displays an input box for the user to enter a name. The name stores in the 'input' variable.