Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create a data connection in Excel 2007 that pulls the result of an Active Directory query into a sheet in my workbook.

I see that I can do this with VBA: http://www.remkoweijnen.nl/blog/2007/11/01/query-active-directory-from-excel/ but I agree with Rob here that it should be easier than that, just using "OLE DB Provider for Microsoft Directory Services"

A bit of googling suggests that this is a hole in our collective knowledge that deserves to be filled!

share|improve this question

I don't believe that is going to work. Best work-around I can think of is to use Powershell's export-csv to export your AD query. Somthing like:

get-aduser -filter * | select Name, employeeid, office, postalcode|export-csv "myADexport.csv"
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .