View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.programming
Colo[_105_] Colo[_105_] is offline
external usenet poster
 
Posts: 11
Default Test for end of array of objects?

peter,
In a loop, you may use TypeName(element)??

A sample in use.
http://puremis.net/excel/code/076.shtml

Why do I have to use a Variant anyway?

Please have a look at the For Each...Next Statement in the VBA help.
[quote]
For arrays, element can only be a Variant variable.
[unquote]


--
Regards,
Colo
http://www.puremis.net/excel/


"peter" wrote in message
...
I think the problem is doing the test of the Variant, whereever it comes
from.

Why do I have to use a Variant anyway? Shouldn't it understand if I use
the class of the contained objects?




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!