Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Retrieving Active Directory "Full Names"

I have a spreadsheet with 50 rows containing Active Directory usernames. I
want to create a second column containing the corresponding Full Names. That
is, cell A1 already has "msmith" and I want cell B1 to retrieve "Michael
Smith" from Active Directory. Can this be done?


--
Regards,

Ward
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Retrieving Active Directory "Full Names"


What code are you using to retreive the usernames from th
ActiveDirectory?

This will help in answering your question

--
bhofset
-----------------------------------------------------------------------
bhofsetz's Profile: http://www.excelforum.com/member.php...fo&userid=1880
View this thread: http://www.excelforum.com/showthread.php?threadid=38176

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Retrieving Active Directory "Full Names"



appears to be some coding involved..

How To Call LanMan Services from 32-bit Visual Basic Apps
http://support.microsoft.com/kb/q159498/


but THEN i thought.. WMI!!!
see http://www.codeproject.com/vbscript/ExchangeMailBox.asp



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Ward wrote :

I have a spreadsheet with 50 rows containing Active Directory
usernames. I want to create a second column containing the
corresponding Full Names. That is, cell A1 already has "msmith" and
I want cell B1 to retrieve "Michael Smith" from Active Directory.
Can this be done?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 233
Default Retrieving Active Directory "Full Names"

There is an OLDEDB provider fro AD as well, so you can use a QueryTable
object to get a list from your AD server. You need VBA since Excel
front end does not accept an ADO string for a nornal query.

DM Unseen

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Retrieving Active Directory "Full Names"


not quite true.

you cannot create a QueryTables as ADODB from UI,
as it will default to ODBC

with VBA you can create(or modify existing) QT without problems.
(maybe minor probs in xl97)

then you CAN modify the query itself from UI but you can no longer
invoke msquery.


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


DM Unseen wrote :

end does not accept an ADO string for a nornal query.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 233
Default Retrieving Active Directory "Full Names"

you cannot create a QueryTables as ADODB from UI,
as it will default to ODBC


That's what I said:) QT accepts ADO connections strings, and it accepts
ADO command text (with limitations), UI wise nothing goes here so all
needs to be done in VBA. but see:
http://homepages.paradise.net.nz/~ro...eryeditor.html. I've
got my own tool but not public so this should help out

DM Unseen

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
retrieving "unsaved" files that you accidentally closed? Bardia Excel Discussion (Misc queries) 1 August 25th 08 08:12 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
"Disk is Full" add-on question to "Can't reset last cell" post tod [email protected] Excel Discussion (Misc queries) 0 January 22nd 07 02:32 AM
Retrieving info from "child" to a "parent" document create button to unhide rows Excel Discussion (Misc queries) 0 January 21st 07 10:40 PM
Backup to specific folder if workbook names begins with "NSR" or "MAC" GregR Excel Programming 3 May 6th 05 12:24 AM


All times are GMT +1. The time now is 08:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"