Below is my code in VBA:
Sub Hamza_Starting_to_Learn()
Dim Hamza_Variable As Long
Hamza_Variable = 7
If Hamza_Variable = 7 Then
MsgBox Hamza_Variable & " Is da bomb"
Elself Hamza_Variable > 7 Then
MsgBox Hamza_Variable & " Is da bigger bomb"
Else
MsgBox Hamza_Variable & "We got ourselves a problem here bro"
End If
It is continuously giving the compile error "End of Statement" on the following line:
Elself Hamza_Variable > 7 Then
It highlights Then and gives this error.
End Ifat the end of your codeEnd If, one for the firstIf Hamza_Variable = 7 Thenand a second because at the end you have anotherElseand notElseIf, try adding a second one and see if it runsElseIfinstead ofElself? (Note that you spelled the latter with anlinstead of anI.)