Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
MicroStation Programming
  • Product Communities
  • Developers and Programming
  • MicroStation Programming
  • More
  • Cancel
MicroStation Programming
MicroStation Programming - Wiki VBA Integration with Applications
    • Sign in
    • MicroStation Programming - Wiki
    • -MicroStation CONNECT Edition
      • +MicroStation SDK
      • +MicroStation MDL
      • -MicroStation VBA
        • +MVBA FAQ
        • -MVBA Topics
          • CRUD example
          • Debugging
          • Documentation
          • Migration from VBA 6.x to 7.x
          • +MVBA Transforms
          • Network Shared Projects
          • Object model
          • Simple example with object library
          • Simple example with recording code
          • VBA Editor
          • VBA Integration with Applications
      • +Training
      • +Code Examples and Utilities
      • +Code Snippets
    • +MicroStation V8

     
     Questions about this article, topic, or product? Click here. 

    VBA Integration with Applications

    VBA is installed together with the main product like MicroStation and the VBA IDE is fully integrated and reachable from  the menu structure.

    In the MicroStation CONNECT generation VBA is integrated in the new Ribbon menu, the Macros Ribbon provides links to the existing tools:

     

    The Dialog Launcher opens the macros dialog:

     

    From the Macros dialog we can open macros from specified locations, open the VBA manager, execute selected macros and record new macros, open the VBA Editor or delete selected macros.

    The VBA Manager open the VBA projects dialog and provides an overview of all direct accessible VBA projects within the MicroStation environment:

    From here we can load projects into the VBA Editor and start editing, also make sure the projects are loaded automatically with MicroStation start.

    All projects listed here are found from the MicroStation configuration variable MS_VBASEARCHDIRECTORIES and if a project is marked with “Load on Startup”, it is added to the variable MS_VBAAUTOLOADPROJECTS.

    If the icon is clicked to “Show the VBA Editor:

    The VBA Editor opens to allow access to the source code of the loaded VBA projects:

     

    VBA also is integrated into the command table of MicroStation and provides keyins to control VBA:

    The keyin: macros vba run also opens the VBA Editor

    Also the Shortcut ALT-F11 can be used to open the VBA editor, if at least one project is already loaded

    • MicroStation
    • Programming
    • VBA Documentation
    • Share
    • History
    • More
    • Cancel
    • Artur Goldsweer Created by Bentley Colleague Artur Goldsweer
    • When: Fri, May 22 2020 5:44 AM
    • Revisions: 1
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2021 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies