Here is a simple functio to convert you DN's (CN=...,OU=...DC=...) into the Relativ Distinguishe Names (the pure object names). Please note that we normally have to care about commas and other special characters in the object's name (
http://www.selfadsi.org/ldap-path.htm#Comma) - but these shouldn't be existant in AD group names:
Public Function get_rdn_pure(ByVal distinguishedName As String) As String
'gives the friendly rdn name without "cn="
get_rdn_pure = Split(distinguishedName, ",")(0)
get_rdn_pure = Split(get_rdn_pure , "=")(1)
End Function