Avatar of p-plater
p-plater
Flag for Australia asked on

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
Microsoft ExcelVisual Basic ClassicProgrammingVBA

Avatar of undefined
Last Comment
gowflow

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
gowflow

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23