<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Microstation CE updt 12 vba run errors</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/178920/microstation-ce-updt-12-vba-run-errors</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Microstation CE updt 12 vba run errors</title><link>https://communities.bentley.com/thread/519679?ContentTypeID=1</link><pubDate>Wed, 01 May 2019 09:28:45 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:aa81d42a-40e2-47c0-a676-be0d708d1909</guid><dc:creator>NicolasT</dc:creator><description>&lt;p&gt;Thank you very much for your reply Jon,&lt;/p&gt;
&lt;p&gt;it is fixed meanwhile. It was the magic word &amp;quot;main&amp;quot; that I missed.&amp;nbsp;I received this from Arthur Goldsweer from Bentley Tech support,&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;I have tested with your VBA example and was successful with both syntax alternatives: vba run [Attach_Raster_NGI_Topo_010CO]Module1.main&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;macro vba run [Attach_Raster_NGI_Topo_010CO]Module1.main With previous Update versions of CONNECT Edition the &amp;quot;macro&amp;quot; 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.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I appreciate very much the work you do in these VBA communities. Great Value (also for Jan Slegr btw) :) thx again&lt;/p&gt;
&lt;p&gt;Nico&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Microstation CE updt 12 vba run errors</title><link>https://communities.bentley.com/thread/519603?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2019 15:30:05 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f13097af-c1d5-4baf-8bf8-cce1d8c6942e</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="279028" url="~/products/microstation/f/microstation-forum/178920/microstation-ce-updt-12-vba-run-errors"]key-in VBA Run [projectname]Modulename.sub does not seem to work[/quote]
&lt;ol&gt;
&lt;li&gt;Where is that MVBA file located (in which folder)?&lt;/li&gt;
&lt;li&gt;Is that folder included in MicroStation configuration variable &lt;code&gt;MS_VBASEARCHDIRECTORIES&lt;/code&gt;?&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>