How to run a Java Application from a Word Macro file using VBA?
Printable View
How to run a Java Application from a Word Macro file using VBA?
Moved from Visual Basic FAQs
probably you can use the shellexecute api
Pls. provide the code.Quote:
Originally Posted by westconn1
call likeCode: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
vb Code:
ShellExecute 0, "Open", filename, vbNullString, 0, SW_SHOWNORMAL
this will basically do the same as double clicking the file fileaname, you will need to add the constant sw_shownormal