<?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 UNinitialize Events in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/uninitialize-events/m-p/985901#M55783</link>
    <description>I have a VBA program that initializes some events.  When the user closes 
the modal dialog box I want the events to stop.  How do I UNinitialize 
or terminate the events?


David Urban</description>
    <pubDate>Tue, 23 Mar 2004 14:13:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2004-03-23T14:13:49Z</dc:date>
    <item>
      <title>UNinitialize Events</title>
      <link>https://forums.autodesk.com/t5/vba-forum/uninitialize-events/m-p/985901#M55783</link>
      <description>I have a VBA program that initializes some events.  When the user closes 
the modal dialog box I want the events to stop.  How do I UNinitialize 
or terminate the events?


David Urban</description>
      <pubDate>Tue, 23 Mar 2004 14:13:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/uninitialize-events/m-p/985901#M55783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-03-23T14:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: UNinitialize Events</title>
      <link>https://forums.autodesk.com/t5/vba-forum/uninitialize-events/m-p/985902#M55784</link>
      <description>David,

Set the event init. variable to Nothing, like in:

Public AcadEvents As New EventClassModule

Set AcadEvents.acadapp = ThisDrawing.Application
(events get initialized here)
...
...
...
Set AcadEvents = Nothing
(events are uninitialized now)

Regards,
Maksim Sestic


"David Urban, P.E." &lt;DURBAN&gt; wrote in message
news:406045f7_2@newsprd01...
&amp;gt; I have a VBA program that initializes some events.  When the user closes
&amp;gt; the modal dialog box I want the events to stop.  How do I UNinitialize
&amp;gt; or terminate the events?
&amp;gt;
&amp;gt;
&amp;gt; David Urban&lt;/DURBAN&gt;</description>
      <pubDate>Tue, 23 Mar 2004 15:13:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/uninitialize-events/m-p/985902#M55784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-03-23T15:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: UNinitialize Events</title>
      <link>https://forums.autodesk.com/t5/vba-forum/uninitialize-events/m-p/985903#M55785</link>
      <description>Events are fired only as long as the variable
that was declared 'WithEvents' is assigned to
to the object that fires the events.

To stop handling events, reassign the variable
to Nothing.

-- 
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005
http://www.acadxtabs.com

AcadX for AutoCAD 2004 Beta 1
http://mysite.verizon.net/~vze2vjds/acadx/AcadX16.zip


"David Urban, P.E." &lt;DURBAN&gt; wrote in message news:406045f7_2@newsprd01...
&amp;gt; I have a VBA program that initializes some events.  When the user closes
&amp;gt; the modal dialog box I want the events to stop.  How do I UNinitialize
&amp;gt; or terminate the events?
&amp;gt;
&amp;gt;
&amp;gt; David Urban&lt;/DURBAN&gt;</description>
      <pubDate>Fri, 09 Apr 2004 06:22:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/uninitialize-events/m-p/985903#M55785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-09T06:22:40Z</dc:date>
    </item>
  </channel>
</rss>

