Hi ,
Code :
I am trying to modify two things in the above code
1. Clear the contents in the input boxes before proceeding to enter the second employee name
2. Using Enter key instead of clicking the O.k Button to input the second employee details
Kindly provide your inputs
Thank you
Regards,
Zaska
Code :
Code:
Private Sub btn_Emplyeelist_Click()
Dim lastrow As Long
lastrow = Worksheets("Sheet1").Range("A65536").End(xlUp).Row + 1
Cells(lastrow, 1).Value = tb_EmpName.Value
Cells(lastrow, 2).Value = tb_EmpPosition.Value
Cells(lastrow, 3).Value = tb_EmpHireDate.Value
End Sub
I am trying to modify two things in the above code
1. Clear the contents in the input boxes before proceeding to enter the second employee name
2. Using Enter key instead of clicking the O.k Button to input the second employee details
Kindly provide your inputs
Thank you
Regards,
Zaska