Skip to Content
Special Edition Using® Microsoft® Office Outlook® 2003
book

Special Edition Using® Microsoft® Office Outlook® 2003

by Charlie Russel, Robert Cordingley
September 2003
Beginner content levelBeginner
1080 pages
29h 28m
English
Que
Content preview from Special Edition Using® Microsoft® Office Outlook® 2003

Using VBA to Manipulate Existing Outlook Data

In addition to using VBA to respond to application-level events, you can also use VBA to manipulate the data you've already stored in Outlook. For instance, if you have a large number of contacts who work for ABC Bakery and the company suddenly changes its name to Sweets and Treats, you don't have to manually update every ABC Bakery contact. You can use VBA to perform the update for you.

The following code sets a folder object variable to your Contacts folder, loops through all contacts items, and updates those with a company name of ABC Bakery. You could also adapt this code to change the email addresses, area codes, or File As fields of these contacts.

TIP

Be careful when working with items in the ...

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.
Start your free trial

You might also like

Microsoft® Office Outlook® 2007 Inside Out

Microsoft® Office Outlook® 2007 Inside Out

Jim Boyce, Beth Sheresh, Doug Sheresh
Special Edition Using Microsoft Office Outlook 2007

Special Edition Using Microsoft Office Outlook 2007

Patricia DiGiacomo, Rob Kirkland, Dorothy Burke
Office 2013: The Missing Manual

Office 2013: The Missing Manual

Nancy Conner, Matthew MacDonald

Publisher Resources

ISBN: 0789729563Purchase book