check in the help file
using events with application object
or
application object events

if you get stuck i can try to help, but it is not real hard once you start