Skip to Content
Outlook 2000 in a Nutshell
book

Outlook 2000 in a Nutshell

by Tom Syroid, Bo Leuf
May 2000
Beginner
664 pages
18h 28m
English
O'Reilly Media, Inc.
Content preview from Outlook 2000 in a Nutshell

The Outlook Object Model

To accomplish a task in Outlook VBA, you use the Outlook object model, a hierarchy of related objects that you use to retrieve information, create new items, and cause Outlook to perform actions. Figure 18-1 shows the object model.

The Outlook Object Model—collections are followed by the data types of their contained objects in parentheses

Figure 18-1. The Outlook Object Model—collections are followed by the data types of their contained objects in parentheses

The object model is obviously large and deep, and it’s not our intent to cover the whole thing here. But you can get a good feeling for how to control Outlook by examining some of its major objects: Application, NameSpace, MAPIFolder, Explorer, and Inspector. (For full details on all the objects and their methods and properties, consult the Outlook VBA help available through the VBA editor.) Before we get into the specifics of these objects, we should take a look at a feature common to many of them—events.

Events

Certain objects in Outlook’s object model can respond to events. Events are external actions on an object to which the object can react. For example, the Application object can react to new mail being received through the NewMail event. You react to this event by writing an event handler, or a routine that executes when the event occurs:

Private Sub Application_NewMail(  )
     MsgBox "You have new mail!"
End Sub

The name of an event handler has the form Object_Event. In this example, the event handler will ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Office 2013 In Depth

Office 2013 In Depth

Joe Habraken
Microsoft® Office Outlook® 2007 Inside Out

Microsoft® Office Outlook® 2007 Inside Out

Jim Boyce, Beth Sheresh, Doug Sheresh

Publisher Resources

ISBN: 1565927044Catalog PageErrata