R
Richard
My Code is below and I am getting an "Invalid procedure
ccall error. If I change the string to the literal path
("C:\Documents and Settings\Richard\My
Documents\Office\test file.xls") I still get the error,
how can I get this to work? The code errors out on the
line "Shell (strPath), vbNormalFocus.
Private Sub lstbox_DblClick(Cancel As Integer)
On Error GoTo Errhand
Dim strPath As String
strPath = Me.lstbox.Column(3)
Shell (strPath), vbNormalFocus
GoExit:
Exit Sub
Errhand:
MsgBox Err.Description & Err.Number
Resume GoExit
End Sub
Thanks for your help in advance..
Richard
ccall error. If I change the string to the literal path
("C:\Documents and Settings\Richard\My
Documents\Office\test file.xls") I still get the error,
how can I get this to work? The code errors out on the
line "Shell (strPath), vbNormalFocus.
Private Sub lstbox_DblClick(Cancel As Integer)
On Error GoTo Errhand
Dim strPath As String
strPath = Me.lstbox.Column(3)
Shell (strPath), vbNormalFocus
GoExit:
Exit Sub
Errhand:
MsgBox Err.Description & Err.Number
Resume GoExit
End Sub
Thanks for your help in advance..
Richard