well, although you didn't state it in your post, my guess is that your running this script with KiXtart 4.x and unfortunately (fortunately?), the OLExxx functions have become extinct !

If this is the case, will have to convert this script to 4.0 syntax (COM Syntax), if you are running this script against 3.63 please advise.