|
-
May 16th, 2000, 05:31 PM
#1
Thread Starter
Junior Member
ShellExecute - Dbclick() in a ListBox
Hi
i´m traing to open a file by dbclicking in listbox but....nothing
Here´s the code i used
[code]
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, _
ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Public Const SW_SHOWNORMAL = 1
Public Sub Open_file_Excel()
Dim OK As Long
OK = ShellExecute(0&, vbNullString, "Excel", vbNullString, "c:\", SW_SHOWNORMAL)
End Sub
[code]
If i dbclick in a file it opens the excel but not the file...so there´s some parameters that open any file??
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|