TheSwamp
Code Red => VB(A) => Topic started by: Guest on November 17, 2006, 11:29:24 AM
-
I have a macro ("^P^C^C_-vbarun Print_Manager.dvb!modMain.Main; "). How can I capture that using the AcadDocument_BeginCommand event? Or is it possible to capture the Print_Manager.dvb!modMain.Main portion of the macro? Is it NOT possible?
-
VBA commands do not fire the "BeginCommand" event. If you need to do something before the command is started, I would suggest you simply code the command in VBA and allow it to call the plotting routine.
-
What are you trying to do? Maybe we can help
-
Try putting a messagebox in the BeginCommand event and then run your macro.
Private Sub AcadDocument_BeginCommand(ByVal CommandName As String)
MsgBox CommandName
End Sub
-vbarun is not a VBA command
You might also look at the BeginLisp event.
Launch your macro from a lisp function and you will have an event that will tell you when your vba function is being run.
-
You might also look at the BeginLisp event.
I missed that one. I'll have a look.
Thanks!