<?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>VBA Interface Error:Unable to run macro</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/91662/vba-interface-error-unable-to-run-macro</link><description>Hello, 
 Company wide we are having macro issues. We are all using: 
 Windows 7 
 MS V8I SS2 v8.11.7.443 
 Microsoft Office 2010 
 We operate on MDT CADSTDDs but have our own modified configuration file. Their macros have been created on a Windows</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: VBA Interface Error:Unable to run macro</title><link>https://communities.bentley.com/thread/294370?ContentTypeID=1</link><pubDate>Thu, 31 Jul 2014 15:37:08 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:1e37d364-4485-482d-86fd-80866d700e53</guid><dc:creator>David Renaud</dc:creator><description>&lt;p&gt;I ran into this today, along with issues with toolbox sizing. I don&amp;#39;t know what changed overnight. I know that the search directory was correct. and I can load the VBA from the VBA project manager. but I got the above error when trying to load from the command line. this one routine (angleassistant) is supposed to load on start, which it didn&amp;#39;t and I noticed it when the command to invoke the routine errored.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: VBA Interface Error:Unable to run macro</title><link>https://communities.bentley.com/thread/263135?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2013 19:51:46 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:08d37de4-de12-41c0-8930-5bf6068390da</guid><dc:creator>vmorasko71</dc:creator><description>&lt;p&gt;I was able to get the macros going this morning. MDT uses 1 UCF file whereas we have individual UCF files. Comparing them side by side, I found that I was missing a line of code:&lt;/p&gt;
&lt;p&gt;MS_VBA_OPEN_IN_MEMORY &amp;nbsp;			= all&lt;/p&gt;
&lt;p&gt;MS_VBASEARCHDIRECTORIES &amp;nbsp; &amp;nbsp; &amp;nbsp; 		= $(MDOHDIR)workspace/programs/vba/&lt;/p&gt;
&lt;p&gt;***MS_VBASEARCHDIRECTORIES &amp;nbsp; &amp;nbsp; &amp;nbsp; 		&amp;gt; $(MDOHDIR)workspace/programs/vba/v8i/***&lt;/p&gt;
&lt;p&gt;MS_VBANEWPROJECTDIRECTORY 		= $(MDOHDIR)workspace/programs/vba/&lt;/p&gt;
&lt;p&gt;MS_VBAAUTOLOADPROJECTS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;		= $(mdohdir)workspace/programs/vba/mdtprjmanager.mvba&lt;/p&gt;
&lt;p&gt;MS_VBAAUTOLOADPROJECTS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;		&amp;gt; $(mdohdir)workspace/programs/vba/mdttraffic.MVBA&lt;/p&gt;
&lt;p&gt;MS_MACRO &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	= $(MDOHDIR)workspace/PROGRAMS/MACRO/ &lt;/p&gt;
&lt;p&gt;MS_MACRO			 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	&amp;gt; $(Pref)&lt;/p&gt;
&lt;p&gt;once it was added the macros worked! &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: VBA Interface Error:Unable to run macro</title><link>https://communities.bentley.com/thread/263119?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2013 19:00:02 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0cb780c4-9b00-496d-aacc-058df899843e</guid><dc:creator>vmorasko71</dc:creator><description>&lt;p&gt;From my understanding (which is very minimal) is that when Microsoft Office is updated, VBA updates as well? &lt;/p&gt;
&lt;p&gt;The configuration variable sounds very promising. I will give it a try as well as look through Frank_Klein&amp;#39;s post as well. &lt;/p&gt;
&lt;p&gt;Thanks for the help! &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: VBA Interface Error:Unable to run macro</title><link>https://communities.bentley.com/thread/263088?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2013 16:09:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:ef915be0-6c13-4709-857b-fed0a1da791e</guid><dc:creator>Frank Klein</dc:creator><description>&lt;p&gt;Go through this: &lt;a rel="nofollow" target="_new" href="http://communities.bentley.com/products/microstation/microstation_programming/f/343173/p/79551/225690.aspx#225690"&gt;communities.bentley.com/.../225690.aspx&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: VBA Interface Error:Unable to run macro</title><link>https://communities.bentley.com/thread/263070?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2013 12:27:18 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:31673c51-e655-410f-9bac-9d72384100a4</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;vmorasko71&amp;quot;]VBA interface error: could not find project or project file[/quote]&lt;/p&gt;
&lt;p&gt;If you open the VBA Project Manager (MicroStation menu &lt;em&gt;Utilities|Macros&lt;/em&gt;) do you see the projects listed?&amp;nbsp; If not, you need to adjust configuration variable &lt;span style="font-family:courier new,courier;"&gt;MS_VBASEARCHDIRECTORIES&lt;/span&gt; to include the correct location of your VBA project files.&lt;/p&gt;
&lt;p&gt;[quote user=&amp;quot;vmorasko71&amp;quot;] ...trying to run on a newer, updated VBA interface[/quote]&lt;/p&gt;
&lt;p&gt;What do you mean by &amp;#39;updated VBA interface&amp;#39;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>