Run Program with Arguments from VBA Excel 2010

Hello

I need to run an external program with Arguments from VBA.

This works from the Command Line and the Run Command
"c:\program files\HotVirtualKeyboard\hvk.exe" "/SHOWKEYBOARD"

I Have Tried
command1 = Chr(34) & "c:\program files\HotVirtualKeyboard\hvk.exe" & Chr(34) & " " & Chr(34) & "/SHOWKEYBOARD" & Chr(34)
Call Shell(command1)

Thanks
p-platerAsked:
Who is Participating?
 
gowflowCommented:
Try this

command1 = Chr(34) & "c:\program files\HotVirtualKeyboard\hvk.exe" & " " & "/SHOWKEYBOARD" & Chr(34)
Call Shell(command1)

Open in new window


gowflow
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.