Entschuldigen Sie bitte mich, aber meine Hoch Schule Deutsch is nicht gut, nach 30 jahres. Auf English:

I think that I had a similar problem. The problem was that the variable named range had no value. So, the event function attempted to divide by zero, crashing the program. Assigning a value to range fixed my problem. I hope that it will fix yours, too.

Auf wiederschreiben,
Bill