You can use this code also :
And call it this way :Code:Public Declare PtrSafe Function FileProtocolHandler Lib "url.dll" _ Alias "FileProtocolHandlerA" (ByVal hwnd As Long, ByVal hinst As Long, _ ByVal lpszCmdLine As String, ByVal nShowCmd As Long) As Long Public Sub OpenHyperlink(ByVal Url) FileProtocolHandler 0, 0, Url, 1 End Sub
Code:OpenHyperlink "H:\QA90PRO32\QA90PRO.exe"
Hi Moosak,
I've given this a go and I'm not sure that I've copied the code to the correct places.
I created a new module and copied the top section of code.
I then copied OpenHyperlink "H:\QA90PRO32\QA90PRO.exe" in to the on click event of my command button.
When clicking the command button nothing happens.
Have I copied the code to the correct place?
Thanks