Microsoft Outlook Programming: Jumpstart for Administrators, Power Users, and Developers

Appendix C: Key Procedures You Can Reuse

The functions and subroutines in Table C.1 are those you are most likely to want to use as building blocks in your own Outlook forms and VBA modules.

Table C.1: Building-Block Procedures

Name

Listing Number

Description

AddFormLaunchCombo

21.11

Add a list of favorite forms to a toolbar

AddPhone

20.3

Update a TaskItem with a phone number from a linked contact

AddPST

12.1

Opens a Personal Folders file

ComplexProcedure

10.8

Boilerplate framework for adding a log file to a complex procedure

ConfigurePublicContacts

12.10

Configures a public Contacts folder for offline and address book use (Outlook 2002)

CopyAttachments

10.9

Copies attachments from one Outlook item to another

CountInView ()

21.6

Returns the number of items displayed in the current folder view

CreateFollowUpTask

6.2

Creates a TaskItem based on information in the currently open AppointmentItem

CreateSenderContactRed

14.15

Adds a contact with a mail message sender's information using the Redemption library to avoid security prompts

CreateVoteMessage

10.3

Creates a voting button message after prompting the user for the buttons' text

DateID()

20.6

Builds an ID from the current date

GetLinkedItems ()

22.12

Returns a Results collection of all items in the Calendar, Tasks, and Journal folders related to a particular contact (Outlook 2002)

DeleteAttachments

7.3

Deletes all attachments in any Outlook item

DeleteAttachmentsCh09

9.1

Is an enhanced version of DeleteAttachments with greater user interaction

DoCDOLogon, DoCDOLogoff

10.4

Initializes and ends a CDO session

EnumAllCommands

21.4

Builds a list of all command bars and commands

EnumCommandBars

21.1

Generates a list of...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Lifting and Rigging Attachments
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.