![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Posts: 137
|
I would like to have an input box where the inputted value will appear in the next open cell.
For Example: If A4 has data, the inputted value will go into a5, and so forth. At the same time, I would like to assign the current date for that inputted record in the column next to it (in column B) For Example: A4 is used, the inputted value will appear in A5 with the today's date in B5. Can this be done. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Sure it can be done. Try the following:
Code:
Sub InputData()
inputstr = InputBox("Enter Data")
Set Rng = [a1].End(xlDown).Offset(1, 0)
Rng.Value = inputstr
Rng.Offset(0, 1).Value = Date
End Sub
__________________
Kind regards, Al Chara |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|