Solved

Getting an Adress from the Address Book

Posted on 2001-06-20
3
145 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
Comment Utility
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
Comment Utility
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
Comment Utility
It took a while but finally I got it to work

Tnks
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

744 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

19 Experts available now in Live!

Get 1:1 Help Now