Using Assertions : Debug.Assert « Language Basics « VBA / Excel / Access / Word






Using Assertions

 
Sub Assertion()
    Dim intAge As Integer
    intAge = InputBox("Please Enter Your Age")
    Debug.Assert (intAge >= 0)
    msgBox "You are " & intAge
End Sub

 








Related examples in the same category

1.Assert