title: VBA Excel File Open Prompt Cancel Error
body: <p>So I am using a file open prompt to gather a filename.
  I then open this file in a background instance, parse information to a dictionary and close the file.
  This works fine. 
  The code for this is:</p>
  
  <pre><code>Application.FileDialog(msoFileDialogOpen).Show
  sFullName = Application.FileDialog(msoFileDialogOpen).SelectedItems(1)
  </code></pre>
  
  <p>If the user presses cancel, which is obviously a feasible scenario, I get the following error:</p>
  
  <pre><code>Invalid procedure call or argument
  </code></pre>
  
  <p>I have tried to change the 'gather' line to:</p>
  
  <pre><code>If Application.FileDialog(msoFileDialogOpen).SelectedItems(1) Then sFullName = Application.FileDialog(msoFileDialogOpen).SelectedItems(1)
  </code></pre>
  
  <p>However this still brings up the error.  Even disabling alerts brings up an error or '400'.
  Any help on how to make this popup or handle it would be greatly appreciated.</p>