How To Implement Facebook Auto-login On A Website
JavaScript |
2025-02-16 17:11:14
Creating a Student Registration Form in Microsoft Excel is simple and can be done using form controls and data validation. Follow these steps:
Restrict Date of Birth to Valid Dates
01/01/1990
and 01/01/2015
.Create a Drop-down List for Gender
Male, Female, Other
.Restrict Contact Number to Numeric Values
Validate Email Address (Optional)
=AND(ISNUMBER(FIND("@", F2)), ISNUMBER(FIND(".", F2)))
Enable Developer Tab
Insert a Form
Add a Submit Button
To make the form functional:
Sub SubmitForm()
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets("Sheet1") ' Change if needed
Dim lastRow As Long
lastRow = ws.Cells(ws.Rows.Count, 1).End(xlUp).Row + 1
ws.Cells(lastRow, 1).Value = ws.Range("B2").Value ' Student ID
ws.Cells(lastRow, 2).Value = ws.Range("B3").Value ' Full Name
ws.Cells(lastRow, 3).Value = ws.Range("B4").Value ' Date of Birth
ws.Cells(lastRow, 4).Value = ws.Range("B5").Value ' Gender
ws.Cells(lastRow, 5).Value = ws.Range("B6").Value ' Contact Number
ws.Cells(lastRow, 6).Value = ws.Range("B7").Value ' Email Address
ws.Cells(lastRow, 7).Value = ws.Range("B8").Value ' Course
MsgBox "Student Registered Successfully!", vbInformation
End Sub