Author Topic: entmake/ActiveX race  (Read 19572 times)

0 Members and 1 Guest are viewing this topic.

Mark

  • Custom Title
  • Seagull
  • Posts: 28753
entmake/ActiveX race
« Reply #30 on: October 31, 2003, 03:18:08 PM »
Ok, I have a question. If I save this as say instest.dvb and open a new dwg how can I load and run it from the command line?
TheSwamp.org  (serving the CAD community since 2003)

daron

  • Guest
entmake/ActiveX race
« Reply #31 on: October 31, 2003, 03:35:22 PM »
like this: ^C^C-vbarun ProjectName.dvb!ModuleName.SubName I think. I just hit the run button in the vbaide. I don't know if that slowed it down or anything.

You might need to call the function as a sub in the module. I'm not sure. I'm just stumbling through this vba thing and needing to learn as much as possible before December 2nd.

SomeCallMeDave

  • Guest
entmake/ActiveX race
« Reply #32 on: October 31, 2003, 03:54:31 PM »
Yes,  it should be a sub rather than function.

if you save it as a dvb,  use vbaman at the command line to load it. But I would open the vba ide and just paste the code in the ThisDrawing module.

Then F5 to run it.  (or vbarun at the command line)
But do change Public function to public Sub  and change End Function to End Sub.