Solved

Getting an Adress from the Address Book

Posted on 2001-06-20
3
150 Views
Last Modified: 2010-05-02
I have a requirement to copy an address from the Address Book into a variable

So far I can open the address book using

On Error Resume Next
MapiMessages.Show

which opens the address book.

How can I put the selected address into a variable

my messaging system is MS Exchange

0
Comment
Question by:mutrus
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
Microsoft earned 100 total points
ID: 6213038
go here my friend
http://www.planetsourcecode.com/xq/ASP/txtCodeId.3167/lngWId.1/qx/vb/scripts/ShowCode.htm

download that code

you can build of that or take it apart. that should show you how to store the addresses in to variables.

hope this helps

cheers
Andy

0
 

Author Comment

by:mutrus
ID: 6216742
Hi Andy,
Andy

Great piece of code but for the life of me I can't figure out how to use pieces of it for what I require.

Basically all I need to do is to show the Address Book, select an address and when the Address Book OK button is pressed store that address in a textbox

I tried your GetRC and SetRC but can't get it to work. Your complete application works ok though.

The problem I have is that the Address Book is opening but I have no email open in the background.

Ideas please ???
0
 

Author Comment

by:mutrus
ID: 6224429
It took a while but finally I got it to work

Tnks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library 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…

679 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