krunal123
Board Regular
- Joined
- Jun 26, 2020
- Messages
- 177
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Option Explicit
Private Sub cmdSave_Click()
Dim LR As Integer, Master As Worksheets
Set Master = ThisWorkbook.Worksheets("Master")
LR = Master.Cells(Rows.Count, "A").End(xlUp).Row
If LR = 2 And Cells(LR, "A").Value = "" Then
LR = LR
Else
LR = LR + 1
End If
Master.Cells(LR, "A").Value =ID.Value
Master.Cells(LR, "B").Value = Name.Value
Master.Cells(LR, "C").Value = GENDER.Value
Master.Cells(LR, "D").Value = Address.Value
Master.Cells(LR, "E").Value = CONTACTNo.Value
Master.Cells(LR, "F").Value = DEPARTMENT.Value
End Sub