ndendrinos
Well-known Member
- Joined
- Jan 17, 2003
- Messages
- 1,694
Code:
Private Sub CommandButton1_Click()
Dim myC As Range
Set myC = Worksheets("Invoice").Range("D17:D35").Find(UserForm1.TextBox2.Text)
If myC Is Nothing Then
MsgBox UserForm1.TextBox2.Text & " was not found."
Else
myC(1, -1).Value = UserForm1.TextBox1.Value 'Pick up the cell to the left
Unload UserForm1
End If
End Sub
Hello above code meets my requirements but I need to keep the userform up
to be able to click on a command button and do one last procedure.
The existing "Unload Userform1" for now has to stay where it is.