Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Division by zero (Visual Basic Run-Time Error) 

An expression being used as a divisor has a value of zero.

To correct this error

  1. Check the spelling of variables in the expression. A misspelled variable name can implicitly create a numeric variable that is initialized to zero.

  2. Check previous operations on variables in the expression, especially those passed into the procedure as arguments from other procedures.

See Also

Community Additions

ADD
Show:
© 2015 Microsoft