473,466 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Outlook address book look up facility

28 New Member
Good morning All,

I have built a small database usage utility which basically shows who logged into the Db, when and what version was used.

I'm bringing back the users log on Id such as AB12345 and I'd like to be able to some how link into the Outlook address book to be able to resolve the users name and possibly location if stored in their Outlook properties.

Is this possible?
Any suggestions would be most appreciated.

Matt
Jun 28 '07 #1
4 2875
MMcCarthy
14,534 Recognized Expert Moderator MVP
Hi Matt

You are talking about Outlook Automation which I am not very familiar with but I will check with some of the other experts.

Mary
Jul 3 '07 #2
NeoPa
32,556 Recognized Expert Moderator MVP
I can't help much here I'm afraid, but I do know that it's possible to link into some of the Outlook containers as tables using File / Get External Data and selecting files of type Outlook().
How practical this would be in your situation I don't know.
Jul 3 '07 #3
Killer42
8,435 Recognized Expert Expert
I can't help much here I'm afraid, but I do know that it's possible to link into some of the Outlook containers as tables using File / Get External Data and selecting files of type Outlook().
How practical this would be in your situation I don't know.
If this doesn't get you what you need, you might try posting a question in the Visual Basic forum. I see Outlook-related topics there from time to time.
Jul 4 '07 #4
FishVal
2,653 Recognized Expert Specialist
Good morning All,

I have built a small database usage utility which basically shows who logged into the Db, when and what version was used.

I'm bringing back the users log on Id such as AB12345 and I'd like to be able to some how link into the Outlook address book to be able to resolve the users name and possibly location if stored in their Outlook properties.

Is this possible?
Any suggestions would be most appreciated.

Matt
Hi!

I'm not very experienced with Outlook object model, but I've tried the following code retrieving AddressList from Outlook and it works fine.
Sure this is very simple but it gives a basic idea I think.

Outlook popups a security dialog than the sub tries to retrieve AddressList. At this point I don't yet know how to avoid it.

Expand|Select|Wrap|Line Numbers
  1. Public Sub GetAddressEntries()
  2.  
  3.     Dim appOutlook As Outlook.Application
  4.     Dim objAddressList As Outlook.AddressList
  5.  
  6.     Set appOutlook = CreateObject(Class:="Outlook.Application")
  7.     Set objAddressList = appOutlook.Session.AddressLists(1)
  8.  
  9.     For Each ae In objAddressList.AddressEntries
  10.         Debug.Print ae.Name
  11.     Next
  12.  
  13.     appOutlook.Quit
  14.     Set objAddressList = Nothing
  15.     Set appOutlook = Nothing
  16.  
  17. End Sub
  18.  
Jul 4 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: someone | last post by:
Hi, I currently have an Access 97 database that includes a field for contact name of a user. This user will almost always have a valid email address contained in the personal address book of...
2
by: Phil Stanton | last post by:
Can anyone give me sone code to add addresses from a query to an Outlook Address book. The problem is that I want to add the new email addresses to a distribution list, not to the main email list ...
1
by: Lauren Quantrell | last post by:
I know if I was using an Access MDB I could link to MS Outlook folders and the addressbook. But I'm using an Access Project (ADP) and want to figure out a way to link to the Outlook addressbook...
4
by: lauren quantrell | last post by:
Is there a way to open the MS Outlook address book using VBA and then be able to do something with the return value? I want users to click an icon to open the Outlook address book then when an...
0
by: Bob Avallone | last post by:
MetaPro Systems Inc. Visual Studio Dot Net Tips & Tricks #3 – Direct Access to Your Outlook Address Book. Project Type: VS.NET Windows Application Code Behind: Visual Basic I have a project...
2
by: hotelinfoline | last post by:
I want to get outlook express (not microsoft outlook express) address book address's in visual basic application. Please tell how I can get.
4
by: Alexander Szigetvary | last post by:
Hi NG! Is there a way to open the Outlook address book dialog (as in Outlook) using C#? I am using Outlook 2003 (MS Outlook 11.0 Object Library). In Outlook 2007 it can be done with...
1
by: Alexander Vasilevsky | last post by:
How extract email address from the address book in Outlook Express? http://www.alvas.net - Audio tools for C# and VB.Net developers
1
by: Lpitt56 | last post by:
I am running MS Access 2007 and I want to update an Outlook Address book from my Access Database. I started out by importing the Outlook Address Book as a linked table and it linked fine. I then...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.