What's the rest of your code and are you running it from Outlook VBA or from some other Office application VBA?