An event procedure must correspond to an event that can be raised by an object. This error has the following cause and solution:
You can't write an event procedure that doesn’t correspond to an event.
You can't use WithEvents on a class that doesn’t raise events.
For additional information, select the item in question and press F1.