Runtime error 76 - Path not found

Runtime error 76 - Path not found

Anonymous
Not applicable
3,386 Views
3 Replies
Message 1 of 4

Runtime error 76 - Path not found

Anonymous
Not applicable
Maybe one of you brain-o's can help me, (you've never failed me before) I'm
getting an error that I can't track: Runtime Error 76: Path not found

The error occurs when trying to load a form for the first time:

Function AddRake()
frmAddRake.Show '<-- Error occurs here
End Function

There are a couple of twists in this plot:

1) If I hit F8 or F5 from the debugger my form loads fine and the macro
works from then on.

2) The error (so far) only occurs if there is a blank .DVB project already
loaded.

3) I'm calling (and loading) my macro the first time from a lisp routine:
(defun c:AddRake () (vl-vbarun "ElevTrim.dvb!basMain.AddRake") (princ))

My macro includes the following references:

'VBA
' Visual Basic For Applications
' C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL
'
'AutoCAD
' AutoCAD 2000 Type Library
' C:\Program Files\Autodesk Architectural Desktop 3\ACAD.TLB
'
'stdole
' OLE Automation
' C:\WINNT\System32\stdole2.tlb
'
'MSForms
' Microsoft Forms 2.0 Object Library
' C:\WINNT\System32\FM20.DLL
'
'AecXBase
' AEC Base 3.3 Object Library
' C:\Program Files\Common Files\Autodesk Shared\AecXBase30.tlb
'
'MSComDlg
' Microsoft Common Dialog Control 6.0
' C:\WINNT\System32\COMDLG32.OCX
'
'ACPREVIEWLib
' AcPreview ActiveX Control module
' C:\WINNT\DOWNLO~1\AcPreview.ocx
'
'VBIDE
' Microsoft Visual Basic for Applications Extensibility 5.3
' C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB
'
'Scripting
' Microsoft Scripting Runtime
' C:\WINNT\System32\scrrun.dll
0 Likes
3,387 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Trevor,

It looks like the error is occuring in the Load event for the form. I assume
that you've tried putting a break point at the start of the Load event to
step through it. When you use F5 to run it, are you selecting the AddRake
function to run or are you doing it from the form so that it loads directly
without being called from your macro?

Glen

"Trevor Taylor (IMAGINiT)" wrote in message
news:3C03DBC2F4392A737CAAD1BF1BC69938@in.WebX.maYIadrTaRb...
> Maybe one of you brain-o's can help me, (you've never failed me before)
I'm
> getting an error that I can't track: Runtime Error 76: Path not found
>
> The error occurs when trying to load a form for the first time:
>
> Function AddRake()
> frmAddRake.Show '<-- Error occurs here
> End Function
>
> There are a couple of twists in this plot:
>
> 1) If I hit F8 or F5 from the debugger my form loads fine and the macro
> works from then on.
>
> 2) The error (so far) only occurs if there is a blank .DVB project already
> loaded.
>
> 3) I'm calling (and loading) my macro the first time from a lisp routine:
> (defun c:AddRake () (vl-vbarun "ElevTrim.dvb!basMain.AddRake")
(princ))
>
> My macro includes the following references:
>
> 'VBA
> ' Visual Basic For Applications
> ' C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL
> '
> 'AutoCAD
> ' AutoCAD 2000 Type Library
> ' C:\Program Files\Autodesk Architectural Desktop 3\ACAD.TLB
> '
> 'stdole
> ' OLE Automation
> ' C:\WINNT\System32\stdole2.tlb
> '
> 'MSForms
> ' Microsoft Forms 2.0 Object Library
> ' C:\WINNT\System32\FM20.DLL
> '
> 'AecXBase
> ' AEC Base 3.3 Object Library
> ' C:\Program Files\Common Files\Autodesk Shared\AecXBase30.tlb
> '
> 'MSComDlg
> ' Microsoft Common Dialog Control 6.0
> ' C:\WINNT\System32\COMDLG32.OCX
> '
> 'ACPREVIEWLib
> ' AcPreview ActiveX Control module
> ' C:\WINNT\DOWNLO~1\AcPreview.ocx
> '
> 'VBIDE
> ' Microsoft Visual Basic for Applications Extensibility 5.3
> ' C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB
> '
> 'Scripting
> ' Microsoft Scripting Runtime
> ' C:\WINNT\System32\scrrun.dll
>
>
>
>
0 Likes
Message 3 of 4

Anonymous
Not applicable
That was it. I had turned off error checking and wasn't seeing that a
function was causing an error.

Thanks!

"Glen Albert" wrote in message
news:DC20CF37D11D160DC369ACE2EA1291CB@in.WebX.maYIadrTaRb...
> Trevor,
>
> It looks like the error is occuring in the Load event for the form. I
assume
> that you've tried putting a break point at the start of the Load event to
> step through it. When you use F5 to run it, are you selecting the AddRake
> function to run or are you doing it from the form so that it loads
directly
> without being called from your macro?
>
> Glen
>
> "Trevor Taylor (IMAGINiT)" wrote in message
> news:3C03DBC2F4392A737CAAD1BF1BC69938@in.WebX.maYIadrTaRb...
> > Maybe one of you brain-o's can help me, (you've never failed me before)
> I'm
> > getting an error that I can't track: Runtime Error 76: Path not found
> >
> > The error occurs when trying to load a form for the first time:
> >
> > Function AddRake()
> > frmAddRake.Show '<-- Error occurs here
> > End Function
> >
> > There are a couple of twists in this plot:
> >
> > 1) If I hit F8 or F5 from the debugger my form loads fine and the macro
> > works from then on.
> >
> > 2) The error (so far) only occurs if there is a blank .DVB project
already
> > loaded.
> >
> > 3) I'm calling (and loading) my macro the first time from a lisp
routine:
> > (defun c:AddRake () (vl-vbarun "ElevTrim.dvb!basMain.AddRake")
> (princ))
> >
> > My macro includes the following references:
> >
> > 'VBA
> > ' Visual Basic For Applications
> > ' C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL
> > '
> > 'AutoCAD
> > ' AutoCAD 2000 Type Library
> > ' C:\Program Files\Autodesk Architectural Desktop 3\ACAD.TLB
> > '
> > 'stdole
> > ' OLE Automation
> > ' C:\WINNT\System32\stdole2.tlb
> > '
> > 'MSForms
> > ' Microsoft Forms 2.0 Object Library
> > ' C:\WINNT\System32\FM20.DLL
> > '
> > 'AecXBase
> > ' AEC Base 3.3 Object Library
> > ' C:\Program Files\Common Files\Autodesk Shared\AecXBase30.tlb
> > '
> > 'MSComDlg
> > ' Microsoft Common Dialog Control 6.0
> > ' C:\WINNT\System32\COMDLG32.OCX
> > '
> > 'ACPREVIEWLib
> > ' AcPreview ActiveX Control module
> > ' C:\WINNT\DOWNLO~1\AcPreview.ocx
> > '
> > 'VBIDE
> > ' Microsoft Visual Basic for Applications Extensibility 5.3
> > ' C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB
> > '
> > 'Scripting
> > ' Microsoft Scripting Runtime
> > ' C:\WINNT\System32\scrrun.dll
> >
> >
> >
> >
>
>
0 Likes
Message 4 of 4

Anonymous
Not applicable
You can be too careful about where you put those "On Error Resume Next"
statements!
0 Likes