Error 91 with an Outlook macro

Hi, I found a macro I wanted to use with Outlook on this website but couldn't make it work. It always said it had a runtime error '91' with this line being the problem:
    Set objItem = Application.ActiveInspector.CurrentItem

The original webpage was there:

the code is at the bottom of the page as the accepted solution.
Who is Participating?
Wayne Taylor (webtubbs)Commented:
Hi touyets,

You could remove that line, then replace this line....

    Set objMessage = objItem.Copy

....with this....

    Set objMessage = Application.CreateItem(olMailItem)


touyetsAuthor Commented:
Thanks. Sorted now
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.