Message 1 of 4
Execution Error
Not applicable
01-22-2007
10:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
While in the VB Editor, I can run a macro, and it works fine. If I switch over to AutoCAD, and use the -vbarun command to run the exact same macro, I get an "Execution error" on the command line, and the macro does not complete. Any ideas why this "Execution error" only occurs from the Acad command line? I do not have any End statments in this code.
Sample code!!!!
Private Sub CommandButton3_Click()
Dim ObjEnt2 As AcadAttributeReference
Dim VarPick As Variant
Dim VarMatrix As Variant
Dim VarParent As Variant
Me.hide
'it dies on this line
ThisDrawing.Utility.GetSubEntity ObjEnt2, VarPick, VarMatrix, VarParent, "Pick Attribute to replace"
ObjEnt2.TextString = TextBox4.Text
ObjEnt2.Update
Me.Show
End Sub
Sample code!!!!
Private Sub CommandButton3_Click()
Dim ObjEnt2 As AcadAttributeReference
Dim VarPick As Variant
Dim VarMatrix As Variant
Dim VarParent As Variant
Me.hide
'it dies on this line
ThisDrawing.Utility.GetSubEntity ObjEnt2, VarPick, VarMatrix, VarParent, "Pick Attribute to replace"
ObjEnt2.TextString = TextBox4.Text
ObjEnt2.Update
Me.Show
End Sub