title: How to return data from getClipboardData?
body: <pre><code>Private Sub importClipboard_Click()
      Dim data As Collection
      data = getClipboardData()
      ...do something...
  End Sub
  
  Function getClipboardData() As Collection
      ...do something...    
  End Function
  </code></pre>
  
  <p>I get</p>
  
  <blockquote>
    <p>Compile error:
    Argument not optional"</p>
  </blockquote>
  
  <p>on the line:</p>
  
  <pre><code>data = getClipboardData()
  </code></pre>
  
  <p>There no arguments to the <code>getClipboardData()</code> function - so how can I be missing one?</p>