naja gehen tuts schon nur is das halt langsamer
elem ist das angeklickte element
Function GetGroupname(Elem)
Dim AllGroups, ent, subent
Set AllGroups = ThisDrawing.Groups
For Each ent In AllGroups
If ent.count <> 0 Then
For Each subent In ent
If subent.handle = Elem.handle Then
Debug.Print ent.Name
GetGroupname = ent.Name
Exit Function
End If
Next subent
End If
Next ent
End Function
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP