Private Sub importClipboard_Click()
Dim data As Collection
data = getClipboardData()
...do something...
End Sub
Function getClipboardData() As Collection
...do something...
End Function
I am getting an "Argument not optional" compile error on the line:
data = getClipboardData()
What am I doing wrong? There no arguments to the getClipboardData() function - so how can I be missing one?