My requirement is to find the last row from a particular cell and store the information in it. Again the next data save should be saved in its next row.
Private Sub CommandButton1_Click()
Dim sh As Worksheet
Set sh = ThisWorkbook.Sheets("Sales_Bill")
Dim lr As Long
lr = sh.Range("B:B15" & Rows.Count).End(xlUp).Row
'''''''''''''''Validation'''''''''''''''
If Me.txtiname.value = "" Then
MsgBox "Please enter the iteam name", vbOKOnly + vbInformation
Exit Sub
End If
'''''''''''''''''Add Data in Excel Sheet'''''''''''''
With sh
.Cells(lr + 1, "B").value = Me.txtiname.value
End With
End Sub