Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Strange behaviour

0 views
Skip to first unread message

Humphrey

unread,
Nov 8, 2007, 4:59:01 PM11/8/07
to
I've just migrated to 2007 and code that used to work is giving errors. The
code is generic,
Dim myItem As Outlook.MailItem
Dim myRecipient As Outlook.Recipient

Set myItem = Application.CreateItem(olMailItem)

but the software is now telling me can't find CreateItem. The exact error
is "Method or data memer not found". I assume its due to the overzealous
security in 2007, but come someone help me fix this??

H

MAC

unread,
Nov 9, 2007, 2:30:06 PM11/9/07
to
On Nov 8, 3:59 pm, Humphrey <Humph...@discussions.microsoft.com>
wrote:

Have you confirmed that your references are set correctly?
Outlook is not usually selected as a reference by default.

In the coding area select from the menu bar Tools|References...
and verify that you have selected 'Microsoft Outlook 11.0 Object
Library'

I am using Access 2003 so I am not sure the reference will be exactly
the same.

Hope this helps.

MAC

Humphrey

unread,
Nov 13, 2007, 5:45:00 PM11/13/07
to
Thanks MAC. That's exactly the issue. The references are set correctly, and
it worked in 2003, but 2007 falls over. What am i missing?
0 new messages