Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Input box default = last input
How can I make the default value of the input box the same as the last user
input (duplicating the functionality of the built-in find/replace dialog)? Dim iLastRow As Long Dim i As Long Dim LastInput As Long With ActiveSheet iLastRow = .Cells(.Rows.Count, "A").End(xlUp).Row For i = 1 To iLastRow Dim iLastRow As Long Dim i As Long With ActiveSheet iLastRow = .Cells(.Rows.Count, "A").End(xlUp).Row For i = 1 To iLastRow If IsEmpty(Cells(i, "A")) And _ (Cells(i, "F").Value < "" Or Cells(i, "J").Value < "") Then Cells(i, "A").Select EnterFactory = InputBox("Enter Factory#: ") If EnterFactory < "" Then Cells(i, "A").Value = EnterFactory End If End If Next i End With MsgBox "No More Blank Factories" End Sub Thank you so much. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Turning off the default date input | Excel Discussion (Misc queries) | |||
default name and value in input cell | Excel Worksheet Functions | |||
Input Box default value as a date | Excel Programming | |||
Retaining the default in an input box - again | Excel Programming | |||
Retaining a default in an input box | Excel Programming |