[求助]请教版主,在VBA中的“IDE”在哪呀,能不能具体的教教,如何用VLAX类?谢谢了 能不能具体的教教,如何用VLAX类?谢谢了 出现如下错误 : “实时错误-2147220999 (800401f9)”选择调试后停在类库: Private Sub Class_Initialize()
Set VL = ThisDrawing.Application.GetInterfaceObject("VL.Application.16") Set VLF = VL.ActiveDocument.Functions
End Sub 的第一行。请问如何解决,麻烦了!
Private Sub Class_Initialize()
If Left(ThisDrawing.Application.Version, 2) = "15" Then Set VL = ThisDrawing.Application.GetInterfaceObject("VL.Application.1") ElseIf Left(ThisDrawing.Application.Version, 2) = "16" Then Set VL = ThisDrawing.Application.GetInterfaceObject("VL.Application.16") End If Set VLF = VL.ActiveDocument.Functions
End Sub
能不能帮我解释这段程序!!