Sub test() Dim selSet As AcadSelectionSet Dim txtObj As AcadText Dim entObj As AcadEntity Dim i As Integer Dim fType(0 To 0) As Integer Dim fData(0 To 0) As Variant Dim j As Integer
For i = ThisDrawing.SelectionSets.Count - 1 To 0 Step -1 If ThisDrawing.SelectionSets.Item(i).Name = "SS1" Then ThisDrawing.SelectionSets.Item(i).Delete Exit For End If Next i
Dim xlApp As New Excel.Application Dim xlBook As New Excel.Workbook Dim xlSheet As New Excel.Worksheet