Just in case you really do want Visual Basic:
Function mydivider(a, b)
If b < 0 Then
temp = a / b
ElseIf a = 0 Then
temp = 1
End If
mydivider = temp
End Function
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email
"integreat" wrote
in message ...
Is there a way to force VBA to do a division by zero without giving the
"divide by zero" error. I need a way to overrride this error but need
0/0 to equal 1
--
integreat
------------------------------------------------------------------------
integreat's Profile:
http://www.excelforum.com/member.php...o&userid=34282
View this thread: http://www.excelforum.com/showthread...hreadid=566460