Error 91 with an Outlook macro

Posted on 2007-10-18
Last Modified: 2013-12-25
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.
Question by:touyets
    LVL 46

    Accepted Solution

    Hi touyets,

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

        Set objMessage = objItem.Copy

    ....with this....

        Set objMessage = Application.CreateItem(olMailItem)



    Author Comment

    Thanks. Sorted now

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
    Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
    The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
    This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now