title: How to use range values as input arguments to shell command
body: <p>I have the following shell code:</p>
  
  <pre><code>RetVal = Shell("""C:\pathforprogram.exe""" + "/argument1 /argument2 /savefile=C:\textfile.txt",1)
  </code></pre>
  
  <p>My problem is now that i want /argument1 for example to be read from a cell. So if Cell A1 has the following string /DoThis then i would do the following:</p>
  
  <pre><code>ArgumentA = Range("A1").Value
  
  RetVal = Shell("""C:\pathforprogram.exe""" + "ArgumentA /argument2 /savefile=C:\textfile.txt",1)
  </code></pre>
  
  <p>However i get the following error returned:</p>
  
  <blockquote>
    <p>ArgumentA is not a valid input command</p>
  </blockquote>
  
  <p>So it seems that the shell command reads ArgumentA instead of /Dothis.</p>
  
  <p>Is there any solution to this? Thank you.</p>