Questions tagged [outlook-object-model]

The Outlook Object Model is the hierarchy of objects, methods and properties exposed by Outlook and available through VBA.

The Outlook Object Model is the hierarchy of objects, methods and properties exposed by Outlook and available through VBA.

Typically, Outlook.Application and Outlook.NameSpace are used to access folders and items within the Outlook Object Model.

The tag pertains to questions having to do with this hierarchy as well as its relationship with other Office object models. Typically this tag is used in tandem with other tags such as , , and .

Links:

67 questions
1
vote
2 answers

How do I reliably tell that two Inspector references point to the same inspector instance?

[continued from Is there a way to tell whether two COM interface references point at the same instance?] I've got references to Inspector objects from two different sources and need to be able to tell which item from one source corresponds to which…
Oliver Giesen
  • 8,745
  • 5
  • 43
  • 81
1
vote
1 answer

How to access the subject of a compose mail item in Outlook

In Outlook, I can set the subject for a new message (when composing a new mail message), but I want to prepend text. So I need to get the subject first, and then set it. Outlook.Application application =…
vwfreak
  • 359
  • 2
  • 4
  • 18
1
vote
1 answer

How can I find "People's Contacts" folders via Outlook's object model?

I have some code that locates all the contact folders that a user has access to by iterating through the Application.Session.Stores collection. This works for the user's contacts and also all the public contacts folders. It also finds all the…
CoderDennis
  • 13,163
  • 9
  • 67
  • 100
1
vote
1 answer

How can I avoid "RPC Server is unavailable" when a user closes Outlook, and my app is using OLE Automation?

My application uses the Outlook object model. Outlook is an out-of-process COM server. Before Outlook 2007, if the user would close Outlook while my app had a reference to it, Outlook would stay running in a hidden state. In Outlook 2007, if the…
Troy
  • 1,157
  • 2
  • 11
  • 27
1
vote
1 answer

avoid deleting attachments in outlook using addin programming

I wonder if there is any way to avoid deleting attachments in outlook mailItem using code either with right clicking and select remove or delete by pressing delete key. I didn't find any solution like [beforeAttachment] event for it.
1
vote
1 answer

Get date time from conversation index timestamp

In Outlook there is a concept of conversation indexes. The original email will have a conversation index like so: 01017C2A2FF4481FED6C146C98A04E2FDB77CEFE8E239603ED7DE0 According to many google searches a reply appends a datetime stamp to…
The Muffin Man
  • 17,963
  • 27
  • 106
  • 187
1
vote
1 answer

CPU usage reachs 100% while inserting contacts in Outlook using C#?

This question is related to my question regarding inserting contacts to Outlook. Nobody was able to suggest any way of doing this beside beside OOM (Outlook Object Model) or Microsoft Outlook object library 12.0, so I ended up using OOM. When I try…
Mohit
  • 874
  • 2
  • 14
  • 26
1
vote
1 answer

Event on Item Marked as Read in Outlook - Delphi COM Add-in

I have a Delphi COM Add-in for Outlook (2000-2007) and am trying to find a way to register an event when an MailItem in Outlook is marked as read. I want to add an additional property to the item as/just after it is marked as read. Does anyone have…
Tao
1
vote
1 answer

What are all the possible types in an Outlook folder?

I am trying to iterate through the Items collection of the Inbox folder of an account. What is the class of the Item if it is a NDR message?
Old Geezer
  • 10,411
  • 21
  • 87
  • 156
1
vote
0 answers

Outlook Object Model Save as MHT Set Time Zone

I have a need to save Outlook emails to MHTML (MHT) format. I have a test application that finds one email by EntryID and saves it the MHT format successfully. My goal is to specify the time zone in which the sent time is displayed. By default, the…
1
vote
1 answer

Using MAPI to access the Exchange Server from a Service

I was tasked with building an application that would check email using MAPI. I made use of a wrapper class coded in cpp, which is accessed from c#. I realize that combining managed and unmanaged code is not necessarily the best path, but it was what…
Tim
  • 2,423
  • 5
  • 31
  • 65
1
vote
1 answer

Are user subs and functions in the microsoft office object model hierarchy?

I'm an experienced Excel VBA programmer, who is trying to write a macro in Excel that uses functions and subs in Outlook. I've done some searching and found that the standard answer looks something like: objApp =…
0
votes
2 answers

Base class for outlook item

I am new to Outlook object model. I want to trap some events like selectionchange events etc. What I found that in the selection object it returns the system.object. I have to do type checking for each item type. Not sure if there is any better way…
0
votes
1 answer

Outlook - how to access appointment attribute COMPANY

The Outlook data model for Appointments includes an attribute called COMPANY. I cannot find where to enter this information anywhere. If I create a new appointment, I can enter start time, stop time, location, etc. It appears I cannot enter the…
user1009073
  • 2,908
  • 4
  • 28
  • 70
0
votes
2 answers

How to find count of appointment items copied in Outlook 2007

In Outlook 2007 When a user has two calendars say Test and actual calendar and he goes to View All appointment in test calendar, copy say around 20 to 30 appointments and paste them in actual calendar's "All Appointment items view, how to get a…
bluetrack