RicksAtWork
Programmer
I have written a function that looks like this:
Function UniqueItemCollection(InputRange As Range) As Collection
'Bunch of code here
End Function
I have named a range Data_Countries
I want to pass this range to my function above..
So I wrote:
UniqueItemCollection(Range("Data_Countries"));
But this throws an error when run 'Object required'
What am I doing wrong?
Function UniqueItemCollection(InputRange As Range) As Collection
'Bunch of code here
End Function
I have named a range Data_Countries
I want to pass this range to my function above..
So I wrote:
UniqueItemCollection(Range("Data_Countries"));
But this throws an error when run 'Object required'
What am I doing wrong?