If you "Call Outlook.kix". you are simply loading the function into your script, you are not executing the function.

You need to either place the UDF into a file and Call "function.udf" early in your script to load it, or simply paste the function into your script directly.

THEN - you can call the function via "Outlook(arg, arg, arg..)" (if args are not needed, then simply call "Outlook()" directly.)

Glenn
_________________________
Actually I am a Rocket Scientist! \:D