Solved

Outlook Viewer Control

Posted on 2011-02-13
2
367 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

830 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