G
gimpl
Guest
ok. i need to open a *.xls file with excel.
I declared a function
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
and when when I call the function i get an error
hwdn not declared
Call ShellExecute(hwnd, "open", "c:\test.xls", "", "c:\program files\Microsoft office\office10\excel.exe", 1)
And is the code for file open right?
I declared a function
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
and when when I call the function i get an error
hwdn not declared
Call ShellExecute(hwnd, "open", "c:\test.xls", "", "c:\program files\Microsoft office\office10\excel.exe", 1)
And is the code for file open right?