<?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 Runtime error 76 - Path not found in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/runtime-error-76-path-not-found/m-p/349723#M76804</link>
    <description>Maybe one of you brain-o's can help me, (you've never failed me before) I'm&lt;BR /&gt;
getting an error that I can't track: Runtime Error 76: Path not found&lt;BR /&gt;
&lt;BR /&gt;
The error occurs when trying to load a form for the first time:&lt;BR /&gt;
&lt;BR /&gt;
Function AddRake()&lt;BR /&gt;
    frmAddRake.Show    '&amp;lt;--  Error occurs here&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
There are a couple of twists in this plot:&lt;BR /&gt;
&lt;BR /&gt;
1) If I hit F8 or F5 from the debugger my form loads fine and the macro&lt;BR /&gt;
works from then on.&lt;BR /&gt;
&lt;BR /&gt;
2) The error (so far) only occurs if there is a blank .DVB project already&lt;BR /&gt;
loaded.&lt;BR /&gt;
&lt;BR /&gt;
3) I'm calling (and loading) my macro the first time from a lisp routine:&lt;BR /&gt;
    (defun c:AddRake () (vl-vbarun "ElevTrim.dvb!basMain.AddRake") (princ))&lt;BR /&gt;
&lt;BR /&gt;
My macro includes the following references:&lt;BR /&gt;
&lt;BR /&gt;
'VBA&lt;BR /&gt;
'    Visual Basic For Applications&lt;BR /&gt;
'    C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL&lt;BR /&gt;
'&lt;BR /&gt;
'AutoCAD&lt;BR /&gt;
'    AutoCAD 2000 Type Library&lt;BR /&gt;
'    C:\Program Files\Autodesk Architectural Desktop 3\ACAD.TLB&lt;BR /&gt;
'&lt;BR /&gt;
'stdole&lt;BR /&gt;
'    OLE Automation&lt;BR /&gt;
'    C:\WINNT\System32\stdole2.tlb&lt;BR /&gt;
'&lt;BR /&gt;
'MSForms&lt;BR /&gt;
'    Microsoft Forms 2.0 Object Library&lt;BR /&gt;
'    C:\WINNT\System32\FM20.DLL&lt;BR /&gt;
'&lt;BR /&gt;
'AecXBase&lt;BR /&gt;
'    AEC Base 3.3 Object Library&lt;BR /&gt;
'    C:\Program Files\Common Files\Autodesk Shared\AecXBase30.tlb&lt;BR /&gt;
'&lt;BR /&gt;
'MSComDlg&lt;BR /&gt;
'    Microsoft Common Dialog Control 6.0&lt;BR /&gt;
'    C:\WINNT\System32\COMDLG32.OCX&lt;BR /&gt;
'&lt;BR /&gt;
'ACPREVIEWLib&lt;BR /&gt;
'    AcPreview ActiveX Control module&lt;BR /&gt;
'    C:\WINNT\DOWNLO~1\AcPreview.ocx&lt;BR /&gt;
'&lt;BR /&gt;
'VBIDE&lt;BR /&gt;
'    Microsoft Visual Basic for Applications Extensibility 5.3&lt;BR /&gt;
'    C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB&lt;BR /&gt;
'&lt;BR /&gt;
'Scripting&lt;BR /&gt;
'    Microsoft Scripting Runtime&lt;BR /&gt;
'    C:\WINNT\System32\scrrun.dll</description>
    <pubDate>Tue, 19 Feb 2002 10:15:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-02-19T10:15:46Z</dc:date>
    <item>
      <title>Runtime error 76 - Path not found</title>
      <link>https://forums.autodesk.com/t5/vba-forum/runtime-error-76-path-not-found/m-p/349723#M76804</link>
      <description>Maybe one of you brain-o's can help me, (you've never failed me before) I'm&lt;BR /&gt;
getting an error that I can't track: Runtime Error 76: Path not found&lt;BR /&gt;
&lt;BR /&gt;
The error occurs when trying to load a form for the first time:&lt;BR /&gt;
&lt;BR /&gt;
Function AddRake()&lt;BR /&gt;
    frmAddRake.Show    '&amp;lt;--  Error occurs here&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
There are a couple of twists in this plot:&lt;BR /&gt;
&lt;BR /&gt;
1) If I hit F8 or F5 from the debugger my form loads fine and the macro&lt;BR /&gt;
works from then on.&lt;BR /&gt;
&lt;BR /&gt;
2) The error (so far) only occurs if there is a blank .DVB project already&lt;BR /&gt;
loaded.&lt;BR /&gt;
&lt;BR /&gt;
3) I'm calling (and loading) my macro the first time from a lisp routine:&lt;BR /&gt;
    (defun c:AddRake () (vl-vbarun "ElevTrim.dvb!basMain.AddRake") (princ))&lt;BR /&gt;
&lt;BR /&gt;
My macro includes the following references:&lt;BR /&gt;
&lt;BR /&gt;
'VBA&lt;BR /&gt;
'    Visual Basic For Applications&lt;BR /&gt;
'    C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL&lt;BR /&gt;
'&lt;BR /&gt;
'AutoCAD&lt;BR /&gt;
'    AutoCAD 2000 Type Library&lt;BR /&gt;
'    C:\Program Files\Autodesk Architectural Desktop 3\ACAD.TLB&lt;BR /&gt;
'&lt;BR /&gt;
'stdole&lt;BR /&gt;
'    OLE Automation&lt;BR /&gt;
'    C:\WINNT\System32\stdole2.tlb&lt;BR /&gt;
'&lt;BR /&gt;
'MSForms&lt;BR /&gt;
'    Microsoft Forms 2.0 Object Library&lt;BR /&gt;
'    C:\WINNT\System32\FM20.DLL&lt;BR /&gt;
'&lt;BR /&gt;
'AecXBase&lt;BR /&gt;
'    AEC Base 3.3 Object Library&lt;BR /&gt;
'    C:\Program Files\Common Files\Autodesk Shared\AecXBase30.tlb&lt;BR /&gt;
'&lt;BR /&gt;
'MSComDlg&lt;BR /&gt;
'    Microsoft Common Dialog Control 6.0&lt;BR /&gt;
'    C:\WINNT\System32\COMDLG32.OCX&lt;BR /&gt;
'&lt;BR /&gt;
'ACPREVIEWLib&lt;BR /&gt;
'    AcPreview ActiveX Control module&lt;BR /&gt;
'    C:\WINNT\DOWNLO~1\AcPreview.ocx&lt;BR /&gt;
'&lt;BR /&gt;
'VBIDE&lt;BR /&gt;
'    Microsoft Visual Basic for Applications Extensibility 5.3&lt;BR /&gt;
'    C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB&lt;BR /&gt;
'&lt;BR /&gt;
'Scripting&lt;BR /&gt;
'    Microsoft Scripting Runtime&lt;BR /&gt;
'    C:\WINNT\System32\scrrun.dll</description>
      <pubDate>Tue, 19 Feb 2002 10:15:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/runtime-error-76-path-not-found/m-p/349723#M76804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-19T10:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error 76 - Path not found</title>
      <link>https://forums.autodesk.com/t5/vba-forum/runtime-error-76-path-not-found/m-p/349724#M76805</link>
      <description>Trevor,&lt;BR /&gt;
&lt;BR /&gt;
It looks like the error is occuring in the Load event for the form. I assume&lt;BR /&gt;
that you've tried putting a break point at the start of the Load event to&lt;BR /&gt;
step through it.  When you use F5 to run it, are you selecting the AddRake&lt;BR /&gt;
function to run or are you doing it from the form so that it loads directly&lt;BR /&gt;
without being called from your macro?&lt;BR /&gt;
&lt;BR /&gt;
Glen&lt;BR /&gt;
&lt;BR /&gt;
"Trevor Taylor (IMAGINiT)" &lt;TREVOR.TAYLOR&gt; wrote in message&lt;BR /&gt;
news:3C03DBC2F4392A737CAAD1BF1BC69938@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Maybe one of you brain-o's can help me, (you've never failed me before)&lt;BR /&gt;
I'm&lt;BR /&gt;
&amp;gt; getting an error that I can't track: Runtime Error 76: Path not found&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The error occurs when trying to load a form for the first time:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Function AddRake()&lt;BR /&gt;
&amp;gt;     frmAddRake.Show    '&amp;lt;--  Error occurs here&lt;BR /&gt;
&amp;gt; End Function&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; There are a couple of twists in this plot:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; 1) If I hit F8 or F5 from the debugger my form loads fine and the macro&lt;BR /&gt;
&amp;gt; works from then on.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; 2) The error (so far) only occurs if there is a blank .DVB project already&lt;BR /&gt;
&amp;gt; loaded.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; 3) I'm calling (and loading) my macro the first time from a lisp routine:&lt;BR /&gt;
&amp;gt;     (defun c:AddRake () (vl-vbarun "ElevTrim.dvb!basMain.AddRake")&lt;BR /&gt;
(princ))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; My macro includes the following references:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; 'VBA&lt;BR /&gt;
&amp;gt; '    Visual Basic For Applications&lt;BR /&gt;
&amp;gt; '    C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL&lt;BR /&gt;
&amp;gt; '&lt;BR /&gt;
&amp;gt; 'AutoCAD&lt;BR /&gt;
&amp;gt; '    AutoCAD 2000 Type Library&lt;BR /&gt;
&amp;gt; '    C:\Program Files\Autodesk Architectural Desktop 3\ACAD.TLB&lt;BR /&gt;
&amp;gt; '&lt;BR /&gt;
&amp;gt; 'stdole&lt;BR /&gt;
&amp;gt; '    OLE Automation&lt;BR /&gt;
&amp;gt; '    C:\WINNT\System32\stdole2.tlb&lt;BR /&gt;
&amp;gt; '&lt;BR /&gt;
&amp;gt; 'MSForms&lt;BR /&gt;
&amp;gt; '    Microsoft Forms 2.0 Object Library&lt;BR /&gt;
&amp;gt; '    C:\WINNT\System32\FM20.DLL&lt;BR /&gt;
&amp;gt; '&lt;BR /&gt;
&amp;gt; 'AecXBase&lt;BR /&gt;
&amp;gt; '    AEC Base 3.3 Object Library&lt;BR /&gt;
&amp;gt; '    C:\Program Files\Common Files\Autodesk Shared\AecXBase30.tlb&lt;BR /&gt;
&amp;gt; '&lt;BR /&gt;
&amp;gt; 'MSComDlg&lt;BR /&gt;
&amp;gt; '    Microsoft Common Dialog Control 6.0&lt;BR /&gt;
&amp;gt; '    C:\WINNT\System32\COMDLG32.OCX&lt;BR /&gt;
&amp;gt; '&lt;BR /&gt;
&amp;gt; 'ACPREVIEWLib&lt;BR /&gt;
&amp;gt; '    AcPreview ActiveX Control module&lt;BR /&gt;
&amp;gt; '    C:\WINNT\DOWNLO~1\AcPreview.ocx&lt;BR /&gt;
&amp;gt; '&lt;BR /&gt;
&amp;gt; 'VBIDE&lt;BR /&gt;
&amp;gt; '    Microsoft Visual Basic for Applications Extensibility 5.3&lt;BR /&gt;
&amp;gt; '    C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB&lt;BR /&gt;
&amp;gt; '&lt;BR /&gt;
&amp;gt; 'Scripting&lt;BR /&gt;
&amp;gt; '    Microsoft Scripting Runtime&lt;BR /&gt;
&amp;gt; '    C:\WINNT\System32\scrrun.dll&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/TREVOR.TAYLOR&gt;</description>
      <pubDate>Tue, 19 Feb 2002 10:58:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/runtime-error-76-path-not-found/m-p/349724#M76805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-19T10:58:45Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/runtime-error-76-path-not-found/m-p/349725#M76806</link>
      <description>That was it.  I had turned off error checking and wasn't seeing that a&lt;BR /&gt;
function was causing an error.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
"Glen Albert" &lt;GLEN.ALBERT.&gt; wrote in message&lt;BR /&gt;
news:DC20CF37D11D160DC369ACE2EA1291CB@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Trevor,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; It looks like the error is occuring in the Load event for the form. I&lt;BR /&gt;
assume&lt;BR /&gt;
&amp;gt; that you've tried putting a break point at the start of the Load event to&lt;BR /&gt;
&amp;gt; step through it.  When you use F5 to run it, are you selecting the AddRake&lt;BR /&gt;
&amp;gt; function to run or are you doing it from the form so that it loads&lt;BR /&gt;
directly&lt;BR /&gt;
&amp;gt; without being called from your macro?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Glen&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Trevor Taylor (IMAGINiT)" &lt;TREVOR.TAYLOR&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:3C03DBC2F4392A737CAAD1BF1BC69938@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Maybe one of you brain-o's can help me, (you've never failed me before)&lt;BR /&gt;
&amp;gt; I'm&lt;BR /&gt;
&amp;gt; &amp;gt; getting an error that I can't track: Runtime Error 76: Path not found&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; The error occurs when trying to load a form for the first time:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Function AddRake()&lt;BR /&gt;
&amp;gt; &amp;gt;     frmAddRake.Show    '&amp;lt;--  Error occurs here&lt;BR /&gt;
&amp;gt; &amp;gt; End Function&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; There are a couple of twists in this plot:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; 1) If I hit F8 or F5 from the debugger my form loads fine and the macro&lt;BR /&gt;
&amp;gt; &amp;gt; works from then on.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; 2) The error (so far) only occurs if there is a blank .DVB project&lt;BR /&gt;
already&lt;BR /&gt;
&amp;gt; &amp;gt; loaded.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; 3) I'm calling (and loading) my macro the first time from a lisp&lt;BR /&gt;
routine:&lt;BR /&gt;
&amp;gt; &amp;gt;     (defun c:AddRake () (vl-vbarun "ElevTrim.dvb!basMain.AddRake")&lt;BR /&gt;
&amp;gt; (princ))&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; My macro includes the following references:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; 'VBA&lt;BR /&gt;
&amp;gt; &amp;gt; '    Visual Basic For Applications&lt;BR /&gt;
&amp;gt; &amp;gt; '    C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL&lt;BR /&gt;
&amp;gt; &amp;gt; '&lt;BR /&gt;
&amp;gt; &amp;gt; 'AutoCAD&lt;BR /&gt;
&amp;gt; &amp;gt; '    AutoCAD 2000 Type Library&lt;BR /&gt;
&amp;gt; &amp;gt; '    C:\Program Files\Autodesk Architectural Desktop 3\ACAD.TLB&lt;BR /&gt;
&amp;gt; &amp;gt; '&lt;BR /&gt;
&amp;gt; &amp;gt; 'stdole&lt;BR /&gt;
&amp;gt; &amp;gt; '    OLE Automation&lt;BR /&gt;
&amp;gt; &amp;gt; '    C:\WINNT\System32\stdole2.tlb&lt;BR /&gt;
&amp;gt; &amp;gt; '&lt;BR /&gt;
&amp;gt; &amp;gt; 'MSForms&lt;BR /&gt;
&amp;gt; &amp;gt; '    Microsoft Forms 2.0 Object Library&lt;BR /&gt;
&amp;gt; &amp;gt; '    C:\WINNT\System32\FM20.DLL&lt;BR /&gt;
&amp;gt; &amp;gt; '&lt;BR /&gt;
&amp;gt; &amp;gt; 'AecXBase&lt;BR /&gt;
&amp;gt; &amp;gt; '    AEC Base 3.3 Object Library&lt;BR /&gt;
&amp;gt; &amp;gt; '    C:\Program Files\Common Files\Autodesk Shared\AecXBase30.tlb&lt;BR /&gt;
&amp;gt; &amp;gt; '&lt;BR /&gt;
&amp;gt; &amp;gt; 'MSComDlg&lt;BR /&gt;
&amp;gt; &amp;gt; '    Microsoft Common Dialog Control 6.0&lt;BR /&gt;
&amp;gt; &amp;gt; '    C:\WINNT\System32\COMDLG32.OCX&lt;BR /&gt;
&amp;gt; &amp;gt; '&lt;BR /&gt;
&amp;gt; &amp;gt; 'ACPREVIEWLib&lt;BR /&gt;
&amp;gt; &amp;gt; '    AcPreview ActiveX Control module&lt;BR /&gt;
&amp;gt; &amp;gt; '    C:\WINNT\DOWNLO~1\AcPreview.ocx&lt;BR /&gt;
&amp;gt; &amp;gt; '&lt;BR /&gt;
&amp;gt; &amp;gt; 'VBIDE&lt;BR /&gt;
&amp;gt; &amp;gt; '    Microsoft Visual Basic for Applications Extensibility 5.3&lt;BR /&gt;
&amp;gt; &amp;gt; '    C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB&lt;BR /&gt;
&amp;gt; &amp;gt; '&lt;BR /&gt;
&amp;gt; &amp;gt; 'Scripting&lt;BR /&gt;
&amp;gt; &amp;gt; '    Microsoft Scripting Runtime&lt;BR /&gt;
&amp;gt; &amp;gt; '    C:\WINNT\System32\scrrun.dll&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/TREVOR.TAYLOR&gt;&lt;/GLEN.ALBERT.&gt;</description>
      <pubDate>Tue, 19 Feb 2002 11:23:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/runtime-error-76-path-not-found/m-p/349725#M76806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-19T11:23:31Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/runtime-error-76-path-not-found/m-p/349726#M76807</link>
      <description>You can be too careful about where you put those "On Error Resume Next"&lt;BR /&gt;
statements!</description>
      <pubDate>Tue, 19 Feb 2002 12:17:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/runtime-error-76-path-not-found/m-p/349726#M76807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-19T12:17:00Z</dc:date>
    </item>
  </channel>
</rss>

