 - Sub aa()
- Dim xls As Excel.Application
- Set xls = New Excel.Application
- Dim ss As AcadSelectionSet
- Dim ole As AcadOle
- Set ss = ThisDrawing.SelectionSets.Add("abc")
- ss.SelectOnScreen
- Set ole = ss(0)
- ThisDrawing.SendCommand ("oleopen ")
- xls.Workbooks(1).Sheets(1).[b1] = "我爱明经"
- xls.Quit
- End Sub
|