Restore the code to 'Exit For' in
the j loop's 'If..Else' block and try it with your original dwg...
Sorry I am not sure what to do here. I tried the original dwg with
both revisions of the code. the first populates the right row count
but duplicates the same information. The second only populates one
row
+-------------------------------------------------------------------+
+-------------------------------------------------------------------+
Unfortunately, I can't debug it due to not having Acad. Once it
finishes the attributes for each entity it should move on to the next
entity. I'd normally step thru it using F8 and watch what happens after
the 1st entity's attributes are done. Perhaps the sEnts string list
needs to be observed during execution to see that it's being
constructed correctly because your results suggest it doesn't add other
entity names...
--
Garry
Free usenet access at
http://www.eternal-september.org
Classic
VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.
vb.general.discussion