Private Sub UserForm_Click()
Dim acadapp As AcadObject Set acadapp = AcadApplication Dim sset As AcadSelectionSet Set sset = ThisDrawing.SelectionSets.Add("newtext") sset.SelectOnScreen Dim txt As AcadText For Each txt In sset If txt.TextString = "q" Then txt.TextString = "2" txt.Update Next txt sset.Delete Set acadapp = Nothing End Sub
我这个程序运行后电脑没提示有毛病啊,可是运行一次后就是无法在CAD2004窗口上选我要更改的文字,求教那里有毛病?先行感谢!