Being a static proxy setting, Darren's code may be more to the point.

I still do not know why you can't execute my UDF. If you execute your test code in a DOS window, what is displayed?
_________________________
Home page: http://www.kixhelp.com/hb/