Sub tt() Dim ss As AcadSelectionSet ThisDrawing.SelectionSets("Test").Delete Set ss = ThisDrawing.SelectionSets.Add("Test") ss.Select acSelectionSetAll Dim a As AcadEntity, i As AcadEntity Set a = ThisDrawing.ModelSpace(0) For Each i In ss If i Is a Then MsgBox "OK" Exit For End If Next i End Sub