<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: VBA macro won't load from CUI in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8517475#M6038</link>
    <description>&lt;P&gt;I was editing my last post when you posted yours. Please reread it.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jan 2019 23:02:26 GMT</pubDate>
    <dc:creator>Ed__Jobe</dc:creator>
    <dc:date>2019-01-11T23:02:26Z</dc:date>
    <item>
      <title>VBA macro won't load from CUI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8511253#M6029</link>
      <description>&lt;P&gt;This macro used to work when clicked from the the AutoCAD menubar.&amp;nbsp; But now it fails. Any idea on how to get it back to working?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;^C^C-vbarun (strcat vbapath "ChangeLayerCase.dvb!Module1.LyrChgCase")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Command: -vbarun&lt;BR /&gt;Macro name: (strcat vbapath "ChangeLayerCase.dvb!Module1.LyrChgCase") "F:\\AC2018\\vba 64 bit\\ChangeLayerCase.dvb!Module1.LyrChgCase"&lt;/P&gt;
&lt;P&gt;Macro name:&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 19:48:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8511253#M6029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-09T19:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: VBA macro won't load from CUI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8516462#M6030</link>
      <description>&lt;P&gt;Can you load the file using VBAMAN? Can you then run the macro using VBARUN (not the command line verstion)? If so, check to make sure that the file, module and macro have not been renamed.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 15:54:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8516462#M6030</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-01-11T15:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: VBA macro won't load from CUI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8516493#M6031</link>
      <description>&lt;P&gt;Yes, I can run everything from the command line.&lt;/P&gt;
&lt;P&gt;However, I'd rather just click the menu item.&lt;/P&gt;
&lt;P&gt;Adding the macro to the end of the command script works though.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;^C^C-vbarun (strcat vbapath "ChangeLayerCase.dvb!Module1.LyrChgCase") &lt;FONT color="#FF0000"&gt;lyrchgcase&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 16:07:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8516493#M6031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-11T16:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: VBA macro won't load from CUI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8516515#M6032</link>
      <description>&lt;P&gt;That's redundant. That means that the first call is loading the file, but the macro can't be found. The second attempt succeeds because the macro is now loaded. Are you sure that Module1 hasn't been renamed?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 16:15:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8516515#M6032</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-01-11T16:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: VBA macro won't load from CUI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8516604#M6033</link>
      <description>&lt;P&gt;As I said, it used to work, but something changed in the 2017 or 2018 versions. Adding the macro call made it work again.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 16:46:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8516604#M6033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-11T16:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: VBA macro won't load from CUI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8516610#M6034</link>
      <description>&lt;P&gt;Don't you want to figure out why? Your workaround doesn't fix the original problem. It shouldn't be necessary to enter the macro name twice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;edit: The png shows that the folder name was changed to AC2019.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 16:51:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8516610#M6034</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-01-11T16:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: VBA macro won't load from CUI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8517454#M6035</link>
      <description>&lt;P&gt;&lt;EM&gt;^C^C-vbarun (strcat vbapath "ChangeLayerCase.dvb!Module1.LyrChgCase")&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The vbapath variable contains the correct path to the folder.&amp;nbsp; It depends on what version of AutoCAD you are using.&amp;nbsp; Yesterday, I was running 2018, today I'm running 2019.&amp;nbsp; Both versions have the same files.&lt;/P&gt;
&lt;P&gt;Have you tried using the command string in a menu item or are you assuming?&amp;nbsp; I have tried and it doesn't work without calling the macro function&amp;nbsp; after the -VBARUN command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 22:38:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8517454#M6035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-11T22:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: VBA macro won't load from CUI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8517465#M6036</link>
      <description>&lt;P&gt;Been doing this since vba was first introduced. You never need to enter the method name twice. If you do, it's becasue the first call couldn't find it. Here is an example from the help file on the proper syntax:&lt;/P&gt;
&lt;P&gt;Acad_Projects.dvb!Project1.Module1.Test&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oops, I just noticed that you didn't include the project name when you created the menu macro for the new version of acad. You only specify Module1 and the method name. Look in the Project Explorer (Ctrl+R) to find the project name. The default is "AcadProject".&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 23:04:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8517465#M6036</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-01-11T23:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: VBA macro won't load from CUI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8517471#M6037</link>
      <description>&lt;P&gt;Here's the screenshot of the dialog based VBARUN command. The macro works when I click the Run button. Note the name of the macro, it's the same as the one I'm using. So I'm not sure what you mean by "&lt;SPAN&gt;you didn't include the project name".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 22:59:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8517471#M6037</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-11T22:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: VBA macro won't load from CUI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8517475#M6038</link>
      <description>&lt;P&gt;I was editing my last post when you posted yours. Please reread it.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 23:02:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8517475#M6038</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-01-11T23:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: VBA macro won't load from CUI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8517477#M6039</link>
      <description>&lt;P&gt;The VBAMAN also shows the project name along with the file/dvb.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 23:07:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8517477#M6039</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-01-11T23:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: VBA macro won't load from CUI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8549796#M6040</link>
      <description>&lt;P&gt;@Anonymous Did you get this problem solved correctly? If my answer solved your problem, please accept it as the solution.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 15:30:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8549796#M6040</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-01-25T15:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: VBA macro won't load from CUI</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8692077#M6041</link>
      <description>&lt;P&gt;Finally found the problem, I need two spaces (or returns) before the -vbarun and a space after lyrchgcase, indicated by the underscores below.&amp;nbsp; For some reason, -vbaload need two returns after you enter the project name.&amp;nbsp; And the return after the lyrchgcase completes the command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-vbaload (strcat vbapath "ChangeLayerCase.dvb!Module1.LyrChgCase")__-vbarun lyrchgcase_&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 20:20:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-macro-won-t-load-from-cui/m-p/8692077#M6041</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-28T20:20:50Z</dc:date>
    </item>
  </channel>
</rss>

