G
Guest
Guest
I have a function which passes in three reference values
Private Function CommonRow(ByRef iArrayi()
As Long, _
ByRef iArrayj() As Long, _
ByRef iArrayk() As Long) As Long
Inside the function, I want to do a if...else
loop with condition like when iArrayi()doesn't exist, iArrayj() doesn't exist or iArrayk() doesn't exist
So I put
If Not iArrayi() Is Nothing Then
But I got an error message "Mistype" when I run the macro
Could someone please help me
Thanks in advance
Private Function CommonRow(ByRef iArrayi()
As Long, _
ByRef iArrayj() As Long, _
ByRef iArrayk() As Long) As Long
Inside the function, I want to do a if...else
loop with condition like when iArrayi()doesn't exist, iArrayj() doesn't exist or iArrayk() doesn't exist
So I put
If Not iArrayi() Is Nothing Then
But I got an error message "Mistype" when I run the macro
Could someone please help me
Thanks in advance