[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 445
  • Last Modified:

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.
0
touyets
Asked:
touyets
1 Solution
 
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now