VBA Excel随机“被零整除”错误

我有一个VBA用户界面,计算一个相当长和复杂的运费报价。 当我运行macros计算报价我不断收到

运行时错误11:“可被零整除”

在随机线上。 我debugging和错误所指的行是这样的:

If TQM < Cbox.Cells(3, 1) Then 

要么

 TQ1 = Q1.Value 

哪里

 Dim TQM, TQ1 as Double dim Q1 as Control 'refers to Combobox on form. Value in Q1 must be number, 'this is checked earlier in sub, cannot reach this point otherwise 

没有做出改变,我点击恢复,子继续,好像没有任何错误。 这是在OS X上的Excel VBA的问题? 有没有解决这个问题的一些方法,而不通过每个潜在的错误点(这可能是很多),并把一个On错误语句?