Change the Number Format with the code
Private Sub enterbtn_Click()
Dim R As Long
If Me.firstnametxtb.Value = "" Then
MsgBox "Please enter a First Name.", vbExclamation, "Student Entry"
Me.firstnametxtb.SetFocus
Exit Sub
End If
If Me.lastnametxtb.Value = "" Then
MsgBox "Please enter a Last Name.", vbExclamation, "Student Entry"
Me.lastnametxtb.SetFocus
Exit Sub
End If
If Me.pointstxtb.Value = "" Then
MsgBox "Please enter points achieved.", vbExclamation, "Student Entry"
Me.pointstxtb.SetFocus
Exit Sub
End If
If Not IsNumeric(Me.pointstxtb.Value) Then
MsgBox "The Points box must contain a number.", vbExclamation, "Student Entry"
Me.pointstxtb.SetFocus
Exit Sub
End If
With Sheet1
R = .Cells(Rows.Count, 1).End(xlUp).Row + 1
'add from form
.Cells(R, 1).Value = Me.firstnametxtb.Value
.Cells(R, 2).Value = Me.lastnametxtb.Value
.Cells(R, 3).Value = Me.pointstxtb.Value
.Cells(R, 3).NumberFormat = "000"
'etc
End With
End Sub
Add a button from the Controls Toolbox then use
Bookmarks