Using your code, I now receive the following error:

Code:

ERROR : IDispatch pointers not allowed in expressions!
Script: X:\nomail.KIX
Line : 54