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:
http://www.experts-exchange.com/Software/Office_Productivity/Groupware/Outlook/Q_21522768.html#discussion

the code is at the bottom of the page as the accepted solution.
touyetsAsked:
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)

Regards,

Wayne
0
 
touyetsAuthor Commented:
Thanks. Sorted now
0
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.