Dim GroupChoice, MEGChoice, StudentName, group1Late, MEG1Late As String
'Making the link variables equal to the cell link for the combo boxes
GroupLink = Range("LateGroup")
MEGlink = Range("LateMEG")
'loop to find which choice the user has picked for their group
If GroupLink = 1 Then
MsgBox "You have not selected a group", vbOKOnly
Exit Sub
Else
If GroupLink = 2 Then
GroupChoice = "1"
Else
If GroupLink = 3 Then
GroupChoice = "2"
End If
'loop to find which choice the …
Run Code Online (Sandbox Code Playgroud)