我想在VBA中删除一个指定的文字样式,可我的代码怎么也删除不了,每次运行都出错。 Dim objCount As Integer Dim i As Integer objCount = ThisDrawing.TextStyles.Count
Dim textObj As AcadTextStyle For i = 0 To objCount - 1 Set textObj = ThisDrawing.TextStyles.Item(i) If textObj.Name = "aaa" Then ThisDrawing.TextStyles.Item(i).Delete Next