Running a .JAR file from within VBA

G

Guest

I'm trying to write some code to run a .jar file when a button is clicked on
a form but I'm having some problems. I tried using the Shell() command but
no luck. Here's what I tried:

Private Sub Command0_Click()
Shell ("java -jar C:\jarfilename.jar")
End Sub

When I click on the button on the form, nothing opens. Can the Shell()
command be used in this case or is there something else I can use?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top