VB Code:
  1. Option Explicit
  2.  
  3. Public Sub Main()
  4.   Dim x As Integer
  5.   Dim y As Long
  6.  
  7.   On Error Resume Next
  8.  
  9.   x = x / 0
  10.  
  11.   If Err Then
  12.     y = 40000
  13.   End If
  14.  
  15.   if x > 0 then Msgbox "There is something wrong with your calculation!"
  16.  
  17. End Sub