title: vba execute exe command line with 2 parameters
body: <p>I want to run an exe file from VBA with 2 parameters.
  To be more specific here is the exact line that works for me in command line (Win+R), I just need it in VBA:</p>
  
  <p>C:\Program Files (x86)\MacroRecorder\MacroRecorder.exe "E:\test.mcr" /a</p>
  
  <p>I tried so far:</p>
  
  <pre><code>Sub open_test_file()
  
  Call Shell("C:\Program Files(x86)\MacroRecorder\MacroRecorder.exe 'E:\test.mcr' /a")
  
  End Sub
  </code></pre>
  
  <p>And this:</p>
  
  <pre><code>Public Sub StartExeWithArgument()
      Dim strProgramName As String
      Dim strArgument As String
      Dim strArgument2 As String
  
      strProgramName = "C:\Program Files (x86)\MacroRecorder\MacroRecorder.exe"
      strArgument = "E:\test.mcr"
      strArgument2 = " /a"
  
      Call Shell("""" &amp; strProgramName &amp; """ """ &amp; strArgument &amp; strArgument2 &amp; """", vbNormalFocus)
  End Sub
  </code></pre>