Hi, I have been searching for some VBA code to list all the groups a user is a member of in Active Directory but none of my search queries have returned anything of value.

I'd like to run a macro that can search the user account logon ID and list all the groups in an Excel sheet.

Does anyone have any example code?