Solved

Outlook Viewer Control

Posted on 2011-02-13
2
364 Views
Last Modified: 2013-11-05
I’m using the Microsoft View Control for office.  The default view is the email, is there any way to change the control view to be the Address Book instead of email?

I know you can do
ViewCtl1.Address Book
And it will pop up the Address Book in another window.  But what I would like to change the default view to the address book.

Any help will be appreciated.


0
Comment
Question by:PhilChapmanJr
2 Comments
 
LVL 6

Accepted Solution

by:
PJBX earned 500 total points
ID: 34893857
I think there is a constant (olFolderContacts) for the adress book.

For example:

Set objOutlook = CreateObject("Outlook.Application")
Set objNamespace = objOutlook.GetNamespace("MAPI")
Set objFolder = objNamespace.GetDefaultFolder(olFolderContacts)

Take a look at:
http://blogs.technet.com/b/heyscriptingguy/archive/2007/03/27/how-can-i-list-all-the-members-of-a-microsoft-outlook-distribution-list.aspx
0
 
LVL 2

Author Closing Comment

by:PhilChapmanJr
ID: 34912906
Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now