I am using visual basic 6.When I add a reference to Microsoft Excel 11.0
object library and run the program, it gives an error

Compile error: Object does not source automation events.

The programs works fine when the reference is removed.I am not sure why its
happening?