I don't remember if MDT 4 had these or not, but see if you can find Mcadautoreg.exe, and
symbbautoreg.exe. If you find them, close MDT and run each one. Then open mdt, and open
your VBA project. If it still has problems, try going into tool, References and
unchecking McadAuto and any others related to MDT.... Ok out and then go back in and re-
reference them.
I don't see anything wrong with what you have posted.
--
Kent
Member of the Autodesk Discussion Forum Moderator Program
"Duane" wrote in message
news:7EFDBCCB18B705DEC45F529FDAD1B3B0@in.WebX.maYIadrTaRb...
> I am a first time urser of VBA for Mechanical Desktop. Could someone please
> let me know what needs to be done to get the following VBA statements to
> word.
>
> Dim mapp As McadApplication
> Set mapp =
> ThisDrawing.Application.GetInterfaceObject("Mcad.Application")
>
> When I try to run a macro containing these lines I get the following error:
>
> "Run-time error
> Problem in loading application"
>
> My goal is to be able to use a macro to change and update assembly
> constraints. Any help would be greatly appreciated.
>
>
> Thanks,
> Duane Hopkins
> duane@tnm.nfld.net
>
>