title: ShellExecute raises type mismatch error when trying to open a file
body: <p>I am trying to automate a .application file to open automatically on an end users machine. The code I found online says to do this:</p>
  
  <pre><code>Dim my_file
  
  my_file = "c:/location/example.application"
  
  ShellExecute 0, vbNullString, my_file, vbNullString, vbNullString, vbNormalFocus
  </code></pre>
  
  <p>but when I try to run it I get a type mismatch error on line 4 which is the <code>ShellExecute</code> line. How can I fix this?</p>