Does the computer you are running that code on have Outlook installed? Is it the same version that you referenced?