K
ker_01
IsEmpty addresses a single variable; IsEmpty(MyVar) determines if it has been
intialized.
I have a named range which is 12 cells. I want to identify when the first
cell has data but the other 11 cells are 'empty'. I've simplified the code
sample below, but I realize that it will be a 2-D array and which parameter
matters will depend on whether the data is in columns or rows... I'm just
trying to see if this is even possible.
My current option is to loop:
MyAbortCode = False
for i = 2 to 12
if IsEmpty(MyArray(i))=False then MyAbortCode = True
Next
If MyAbortCode = False then
'do stuff
End If
but I'm wondering if there is any way to do this all at once without a loop.
If IsEmpty(MyArray(2 to 12))= true then
'do stuff
End If
Thank you for any ideas,
Keith
intialized.
I have a named range which is 12 cells. I want to identify when the first
cell has data but the other 11 cells are 'empty'. I've simplified the code
sample below, but I realize that it will be a 2-D array and which parameter
matters will depend on whether the data is in columns or rows... I'm just
trying to see if this is even possible.
My current option is to loop:
MyAbortCode = False
for i = 2 to 12
if IsEmpty(MyArray(i))=False then MyAbortCode = True
Next
If MyAbortCode = False then
'do stuff
End If
but I'm wondering if there is any way to do this all at once without a loop.
If IsEmpty(MyArray(2 to 12))= true then
'do stuff
End If
Thank you for any ideas,
Keith