Microstation CE updt 12 vba run errors

Hello,

The key-in VBA Run [projectname]Modulename.sub does not seem to work on my machine.

The Project Manager is loaded. The projectname (listed in Project Manaer) is the same as the mvba name. The vba runs OK when run from within the VBA editor.

I have a "Module1" and a module "LocateTextCommand". Tried many combinations adding and ommitting parts following all  I could find on communities. Without success.

6574.Attach_Raster_NGI_Topo_010CO.mvba

The purpose it set these in Function keys. That's why we want to key-in.

Thank youvery much in advance for any workable syntax.

Best regards,

Nico

  • key-in VBA Run [projectname]Modulename.sub does not seem to work
    1. Where is that MVBA file located (in which folder)?
    2. Is that folder included in MicroStation configuration variable MS_VBASEARCHDIRECTORIES?

     
    Regards, Jon Summers
    LA Solutions

  • Thank you very much for your reply Jon,

    it is fixed meanwhile. It was the magic word "main" that I missed. I received this from Arthur Goldsweer from Bentley Tech support,

    "I have tested with your VBA example and was successful with both syntax alternatives: vba run [Attach_Raster_NGI_Topo_010CO]Module1.main

    macro vba run [Attach_Raster_NGI_Topo_010CO]Module1.main With previous Update versions of CONNECT Edition the "macro" keyword had to be added. With the current version Update 12 this is no longer required. If the VBA project is not loaded, the .mvba project file should be located in a folder covered by the configuration variable MS_VBASEARCHDIRECTORIES in order to be found with the keyin."

    I appreciate very much the work you do in these VBA communities. Great Value (also for Jan Slegr btw) :) thx again

    Nico