Dim EmployeeName As String
Dim EmployeeName As String
Sub MyProgram()
End Sub
Sub scenario1()
MsgBox EmployeeName
MsgBox EmployeeAge
MsgBox EmployeeSalary
End Sub
Sub scenario2()
Else
End If
End Sub
Sub scenario3()
Else
End If
End Sub
Sub scenario4()
Case Is < 25
MsgBox "Junior"
Case 23 To 35
MsgBox "Executive"
Case 35 To 45
MsgBox "Manager"
Case 45 To 55
Case Is > 55
MsgBox "CXO"
End Select
End Sub
Sub scenario5()
MsgBox "Employee " & EmployeeName & "Is " & EmployeeAge & " Years old."
End Sub
Dim StudentName As String
Sub scenario1()
Else
MsgBox "Admitted"
End If
End Sub
Sub scenario2()
Else
MsgBox "Admitted"
End If
End Sub
Sub scenario3()
MsgBox "Admitted"
Else
End If
End Sub
Sub scenario4()
Case Is < 5
Case 5 To 12
MsgBox "Junior"
Case 12 To 16
MsgBox "Senior"
Case Is > 16
End Select
End Sub
Sub scenario5()
MsgBox "student"
End Sub
Sub scenario1()
Else
End If
End Sub
Sub scenario2()
ProductName = InputBox(" Enter Product Name")
Else
End If
End Sub
Sub scenario3()
Else
End If
End Sub
Sub scenario4()
MsgBox "10%"
End Select
End Sub
Sub senario5()
MsgBox "Product " & ProductName & "cost " & ProductPrice & "per unit"
End Sub