Hi all,
I just started with vba. I have the "Learning Microstation VBA" book from Bently. I am running into a problem with an example in the book. I am posting the code below. The problem is when I go to run the macro there is no macro name displayed in the dialog (second screenshot). Can anyone tell me where the problem is?
Hi,
You sub is looking for three arguments to be passed to it (CenX CenY, & CenZ). Microstation is assuming that it will just start the routine without any arguments. So there are two possibilities...
1) use the keyin "vba run Module1.DrawTarget x y z" (Assuming the module name is module1...)
2) create a dummy sub to run the main routine... Sub StartThis() DrawTarget x, y, z End Sub
--Robert