Solved

Getting an Adress from the Address Book

Posted on 2001-06-20
3
147 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Specify ip address in my connection string for sas 2 54
Macro which automatically send Excel spreadsheet to Outlook problem 2 61
using Access 8 59
Copy a row 12 59
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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 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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

863 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

25 Experts available now in Live!

Get 1:1 Help Now