>here goes,
>the error is at oitem.send
I wonder why it would be looking for foxcode on a line which just calls a method in a COM object... and then why can't it find it. Could it be that this particular version of Outlook changed the current directory on you? Try to step through this whole code with curd() in a watch window. I've seen a few things from Microsoft which may do that.
If so, do a
lcHere=set("directory")
before creating the instance of outlook, then
cd (lcHere)
immediately afterwards.