Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
macro to input data
Hi
I need to know if what command is required to a make macro that will ask the user to input data and then after entering it will move to the next cell again asking the user to input another data. Glenn |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
macro to input data
Assuming entry is prompted by a
CommandButton: Private Sub CommandButton1_Click() Dim strIn As String Do strIn = InputBox("Enter data.") iRow = iRow + 1 Sheets("Sheet1").Cells(iRow, 1) = strIn Loop Until strIn = "" End Sub HTH, Merjet |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Creating a macro for data input. | Excel Discussion (Misc queries) | |||
Macro Data Input | Excel Discussion (Misc queries) | |||
write a macro to input data | Excel Discussion (Misc queries) | |||
Use a static set of data for input into a macro | Excel Discussion (Misc queries) | |||
write macro to input data | New Users to Excel |