<?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: Loading a macro from startup in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/loading-a-macro-from-startup/m-p/973085#M56208</link>
    <description>All our customisation is stored on a server and this location is added to the AutoCAD search path.&lt;BR /&gt;
&lt;BR /&gt;
I have now gone one step further though by having a setup program that is run after AutoCAD is installed. The program copies the Acad.dvb &amp;amp; Acad.rx to the AutoCAD support directory so they will load for all users. All I have in the Acad.dvb is to load another DVB with all our code and run a startup procedure as follows:&lt;BR /&gt;
&lt;BR /&gt;
**********Start Acad.dvb ThisDrawing object.&lt;BR /&gt;
Option Explicit&lt;BR /&gt;
&lt;BR /&gt;
Public Sub AcadStartup()&lt;BR /&gt;
LoadDVB "Z:\RAA_UTIL04\RAA.dvb"&lt;BR /&gt;
RunMacro "Startup.Startup"&lt;BR /&gt;
End Sub&lt;BR /&gt;
**********Finish Acad.dvb ThisDrawing object.&lt;BR /&gt;
&lt;BR /&gt;
The following is what I have in the startup procedure:&lt;BR /&gt;
&lt;BR /&gt;
**********Start RAA.dvb Startup module.&lt;BR /&gt;
Option Explicit&lt;BR /&gt;
&lt;BR /&gt;
Public Sub Startup()&lt;BR /&gt;
Call AcadSettings.Preferences&lt;BR /&gt;
Call AcadMapSettings.Aliases&lt;BR /&gt;
Call AcadMapSettings.ProjectOptions&lt;BR /&gt;
Call AcadMapSettings.SystemOptions&lt;BR /&gt;
Call ApplicationEvents.InitializeEvents&lt;BR /&gt;
LoadArx "AcadX16.arx"&lt;BR /&gt;
End Sub&lt;BR /&gt;
**********Finish RAA.dvb Startup module.&lt;BR /&gt;
&lt;BR /&gt;
Regards - Nathan</description>
    <pubDate>Tue, 09 Mar 2004 22:24:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2004-03-09T22:24:22Z</dc:date>
    <item>
      <title>Loading a macro from startup</title>
      <link>https://forums.autodesk.com/t5/vba-forum/loading-a-macro-from-startup/m-p/973081#M56204</link>
      <description>Hi,

I have a macro that creates a toolbar, the toolbar is updated now and then.

I don't want it to update every time I open a new drawing or switch between
drawings.
I want it to update the toolbar when acad is started. And only then.

Can anybody explain this newbie how to do this?

Frank</description>
      <pubDate>Mon, 08 Mar 2004 15:38:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/loading-a-macro-from-startup/m-p/973081#M56204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-03-08T15:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a macro from startup</title>
      <link>https://forums.autodesk.com/t5/vba-forum/loading-a-macro-from-startup/m-p/973082#M56205</link>
      <description>From the Help File&lt;BR /&gt;
**********&lt;BR /&gt;
acvba.arx — Automatically Load VBA &lt;BR /&gt;
You cannot load VBA until an AutoCAD VBA command is issued. If you want to load VBA automatically every time you start AutoCAD include the following line in the acad.rx file: &lt;BR /&gt;
&lt;BR /&gt;
acvba.arx&lt;BR /&gt;
&lt;BR /&gt;
You can automatically run a macro in the acad.dvb file by naming the macro AcadStartup. Any macro in your acad.dvb file called AcadStartup automatically executes when VBA loads. &lt;BR /&gt;
&lt;BR /&gt;
acad.dvb — Automatically Load a VBA Project &lt;BR /&gt;
The acad.dvb file is useful if you want to load a specific VBA project that contains macros you want each time you start AutoCAD. Each time you start a new AutoCAD drawing session, AutoCAD searches for the acad.dvb file and loads it. &lt;BR /&gt;
**********&lt;BR /&gt;
Regards - Nathan</description>
      <pubDate>Mon, 08 Mar 2004 21:53:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/loading-a-macro-from-startup/m-p/973082#M56205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-03-08T21:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a macro from startup</title>
      <link>https://forums.autodesk.com/t5/vba-forum/loading-a-macro-from-startup/m-p/973083#M56206</link>
      <description>Ok, but that is when it is only for one computer, but I want to load a .dvb
file that is on the network and used by several users.
This because when I change something it changes for everybody.

Is there a solution to that too?

"Nathan Taylor" &lt;NOSPAM&gt; schreef in bericht
news:2096519.1078782847363.JavaMail.jive@jiveforum1...
&amp;gt; From the Help File
&amp;gt; **********
&amp;gt; acvba.arx - Automatically Load VBA
&amp;gt; You cannot load VBA until an AutoCAD VBA command is issued. If you want to
load VBA automatically every time you start AutoCAD include the following
line in the acad.rx file:
&amp;gt;
&amp;gt; acvba.arx
&amp;gt;
&amp;gt; You can automatically run a macro in the acad.dvb file by naming the macro
AcadStartup. Any macro in your acad.dvb file called AcadStartup
automatically executes when VBA loads.
&amp;gt;
&amp;gt; acad.dvb - Automatically Load a VBA Project
&amp;gt; The acad.dvb file is useful if you want to load a specific VBA project
that contains macros you want each time you start AutoCAD. Each time you
start a new AutoCAD drawing session, AutoCAD searches for the acad.dvb file
and loads it.
&amp;gt; **********
&amp;gt; Regards - Nathan&lt;/NOSPAM&gt;</description>
      <pubDate>Tue, 09 Mar 2004 08:34:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/loading-a-macro-from-startup/m-p/973083#M56206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-03-09T08:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a macro from startup</title>
      <link>https://forums.autodesk.com/t5/vba-forum/loading-a-macro-from-startup/m-p/973084#M56207</link>
      <description>You can add it to your start up suite - run appload and click the contents
button, then the add button. note that some people have had problems with
this approach, I don't know the details though

Kevin

"Frank Jan Koole" &lt;FRANK_JAN.KOOLE&gt; wrote in message
news:404d819c$1@lin2.kralog.nl...
&amp;gt; Ok, but that is when it is only for one computer, but I want to load a
.dvb
&amp;gt; file that is on the network and used by several users.
&amp;gt; This because when I change something it changes for everybody.
&amp;gt;
&amp;gt; Is there a solution to that too?
&amp;gt;
&amp;gt; "Nathan Taylor" &lt;NOSPAM&gt; schreef in bericht
&amp;gt; news:2096519.1078782847363.JavaMail.jive@jiveforum1...
&amp;gt; &amp;gt; From the Help File
&amp;gt; &amp;gt; **********
&amp;gt; &amp;gt; acvba.arx - Automatically Load VBA
&amp;gt; &amp;gt; You cannot load VBA until an AutoCAD VBA command is issued. If you want
to
&amp;gt; load VBA automatically every time you start AutoCAD include the following
&amp;gt; line in the acad.rx file:
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; acvba.arx
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; You can automatically run a macro in the acad.dvb file by naming the
macro
&amp;gt; AcadStartup. Any macro in your acad.dvb file called AcadStartup
&amp;gt; automatically executes when VBA loads.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; acad.dvb - Automatically Load a VBA Project
&amp;gt; &amp;gt; The acad.dvb file is useful if you want to load a specific VBA project
&amp;gt; that contains macros you want each time you start AutoCAD. Each time you
&amp;gt; start a new AutoCAD drawing session, AutoCAD searches for the acad.dvb
file
&amp;gt; and loads it.
&amp;gt; &amp;gt; **********
&amp;gt; &amp;gt; Regards - Nathan
&amp;gt;
&amp;gt;&lt;/NOSPAM&gt;&lt;/FRANK_JAN.KOOLE&gt;</description>
      <pubDate>Tue, 09 Mar 2004 12:44:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/loading-a-macro-from-startup/m-p/973084#M56207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-03-09T12:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a macro from startup</title>
      <link>https://forums.autodesk.com/t5/vba-forum/loading-a-macro-from-startup/m-p/973085#M56208</link>
      <description>All our customisation is stored on a server and this location is added to the AutoCAD search path.&lt;BR /&gt;
&lt;BR /&gt;
I have now gone one step further though by having a setup program that is run after AutoCAD is installed. The program copies the Acad.dvb &amp;amp; Acad.rx to the AutoCAD support directory so they will load for all users. All I have in the Acad.dvb is to load another DVB with all our code and run a startup procedure as follows:&lt;BR /&gt;
&lt;BR /&gt;
**********Start Acad.dvb ThisDrawing object.&lt;BR /&gt;
Option Explicit&lt;BR /&gt;
&lt;BR /&gt;
Public Sub AcadStartup()&lt;BR /&gt;
LoadDVB "Z:\RAA_UTIL04\RAA.dvb"&lt;BR /&gt;
RunMacro "Startup.Startup"&lt;BR /&gt;
End Sub&lt;BR /&gt;
**********Finish Acad.dvb ThisDrawing object.&lt;BR /&gt;
&lt;BR /&gt;
The following is what I have in the startup procedure:&lt;BR /&gt;
&lt;BR /&gt;
**********Start RAA.dvb Startup module.&lt;BR /&gt;
Option Explicit&lt;BR /&gt;
&lt;BR /&gt;
Public Sub Startup()&lt;BR /&gt;
Call AcadSettings.Preferences&lt;BR /&gt;
Call AcadMapSettings.Aliases&lt;BR /&gt;
Call AcadMapSettings.ProjectOptions&lt;BR /&gt;
Call AcadMapSettings.SystemOptions&lt;BR /&gt;
Call ApplicationEvents.InitializeEvents&lt;BR /&gt;
LoadArx "AcadX16.arx"&lt;BR /&gt;
End Sub&lt;BR /&gt;
**********Finish RAA.dvb Startup module.&lt;BR /&gt;
&lt;BR /&gt;
Regards - Nathan</description>
      <pubDate>Tue, 09 Mar 2004 22:24:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/loading-a-macro-from-startup/m-p/973085#M56208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-03-09T22:24:22Z</dc:date>
    </item>
  </channel>
</rss>

