Private Sub UserForm_Initialize() Dim NewSerno As Long NewSerno = [Sheet].Cells(Rows.Count, "A").End(xlUp).Value + 1 [Sheet].Cells(Rows.Count, "A").End(xlUp.Offset(1) = NewSerno Text1.Value = NewSerno End Sub
Private Sub UserForm_Initialize() Dim NewSerno As Long NewSerno = [Sheet].Cells(Rows.Count, "A").End(xlUp).Value + 1 [Sheet].Cells(Rows.Count, "A").End(xlUp.Offset(1) = NewSerno Text1.Value = NewSerno End Sub
I expect the student to do their homework and find all the errrors I leeve in.
Please take the time to read the Forum FAQ