<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315255#M95522</link>
    <description>So what does your final loop look like? Considering the dearth of MCAD info,&lt;BR /&gt;
it sure would help to have a sample of working code. If you don't mind&lt;BR /&gt;
sharing, of course.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Visit me at: http://www2.stonemedia.com/franko&lt;BR /&gt;
&lt;BR /&gt;
"Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
news:88nvih$idu7@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Frank&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I found this method and it seems to work fine now.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;        BOMstd.columns.Remove column.Index&lt;BR /&gt;
&amp;gt; Why we have this method and the other beats me.  It was really odd&lt;BR /&gt;
&amp;gt; with the other line in there.  It would stop on the line shown&lt;BR /&gt;
&amp;gt; below one time and then if you exited and ran it again it would go&lt;BR /&gt;
&amp;gt; thru a few times and then stop on the line after that one.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Now I am trying to figure out how to add all the columns I want.&lt;BR /&gt;
&amp;gt; This crazy thing lets you add duplicates, without a error message,&lt;BR /&gt;
&amp;gt; but when you then manually go into the symstd you have a mess,&lt;BR /&gt;
&amp;gt; that you sometimes can't clean up because there are certain&lt;BR /&gt;
&amp;gt; columns you can't delete, but yet you have duplicates so it&lt;BR /&gt;
&amp;gt; complains.  I was hoping to just use a on error resume next but&lt;BR /&gt;
&amp;gt; ........  I guess not.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Everything in the Mcad stuff seems twice as hard.   I sure hope&lt;BR /&gt;
&amp;gt; they are improving the code along with the help files for the next&lt;BR /&gt;
&amp;gt; go.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Kent Keller&lt;BR /&gt;
&amp;gt; Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt; http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:88ns9h$ids5@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; Closer&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; It looked like it was working and then it stopped on the line&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And&lt;BR /&gt;
&amp;gt; column.Name&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;lt;&amp;gt; "NAME" Then&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Saying   "Method "Name" of object "IMcadColumnDefinition"&lt;BR /&gt;
&amp;gt; failed.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I will play with it a little and see if I can figure out what&lt;BR /&gt;
&amp;gt; went&lt;BR /&gt;
&amp;gt; &amp;gt; wrong.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Kent Keller&lt;BR /&gt;
&amp;gt; &amp;gt; Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt; &amp;gt; http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:88npnh$ied3@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Then how about this:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; For Each column In BOMstd.Columns&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And&lt;BR /&gt;
&amp;gt; &amp;gt; column.Name &amp;lt;&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; "NAME" Then&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;         BOMstd.RemoveColumn column.index&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     End If&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Next&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Visit me at: http://www2.stonemedia.com/franko&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/FRANKO&gt;&lt;/KENT&gt;&lt;/KENT&gt;</description>
    <pubDate>Sun, 20 Feb 2000 17:23:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-02-20T17:23:17Z</dc:date>
    <item>
      <title>Unanswered MDT questions</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315247#M95514</link>
      <description>Not sure why I keep posting MDT questions, but here goes another&lt;BR /&gt;
one.&lt;BR /&gt;
&lt;BR /&gt;
Why do I get errors on this after it has iterated thru a few&lt;BR /&gt;
times.  I think It might have something to do with the blank line&lt;BR /&gt;
in the columns list but I am not sure.&lt;BR /&gt;
&lt;BR /&gt;
Again any help appreciated.   Why doesn't Autodesk ever show a&lt;BR /&gt;
presence here?&lt;BR /&gt;
&lt;BR /&gt;
    For i = 0 To BOMstd.ColumnCount - 1&lt;BR /&gt;
    Set column = BOMstd.columns(i)&lt;BR /&gt;
    If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And&lt;BR /&gt;
column.Name &amp;lt;&amp;gt; "NAME" Then&lt;BR /&gt;
    BOMstd.RemoveColumn (i)&lt;BR /&gt;
    End If&lt;BR /&gt;
    Next&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent Keller&lt;BR /&gt;
Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
http://webhome.idirect.com/~dfulford/</description>
      <pubDate>Sat, 19 Feb 2000 05:40:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315247#M95514</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-19T05:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unanswered MDT questions</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315248#M95515</link>
      <description>It would help to know exactly what kind of errors you are referring to but&lt;BR /&gt;
one thing I can tell you right off the bat is that you are creating problems&lt;BR /&gt;
for yourself by deleting members of a collection while in a loop. The Count&lt;BR /&gt;
property is updated immediately whenever a member is added to or deleted&lt;BR /&gt;
from a collection. So the moment you delete an item, your loop variable is&lt;BR /&gt;
no longer valid AND you are accessing the wrong item from that point on. If&lt;BR /&gt;
you delete the second item, the third takes its place, so when you access&lt;BR /&gt;
item number 3, you really have item number 4 instead.&lt;BR /&gt;
&lt;BR /&gt;
Try using a For Each loop instead. Or use your loop to collect the&lt;BR /&gt;
string-based index of those columns you would like to delete and delete them&lt;BR /&gt;
after the loop is complete, assuming they have a string-based index.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Visit me at: http://www2.stonemedia.com/franko&lt;BR /&gt;
&lt;BR /&gt;
"Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
news:88l9ut$c2j24@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Not sure why I keep posting MDT questions, but here goes another&lt;BR /&gt;
&amp;gt; one.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Why do I get errors on this after it has iterated thru a few&lt;BR /&gt;
&amp;gt; times.  I think It might have something to do with the blank line&lt;BR /&gt;
&amp;gt; in the columns list but I am not sure.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Again any help appreciated.   Why doesn't Autodesk ever show a&lt;BR /&gt;
&amp;gt; presence here?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     For i = 0 To BOMstd.ColumnCount - 1&lt;BR /&gt;
&amp;gt;     Set column = BOMstd.columns(i)&lt;BR /&gt;
&amp;gt;     If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And&lt;BR /&gt;
&amp;gt; column.Name &amp;lt;&amp;gt; "NAME" Then&lt;BR /&gt;
&amp;gt;     BOMstd.RemoveColumn (i)&lt;BR /&gt;
&amp;gt;     End If&lt;BR /&gt;
&amp;gt;     Next&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Kent Keller&lt;BR /&gt;
&amp;gt; Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt; http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KENT&gt;</description>
      <pubDate>Sat, 19 Feb 2000 17:17:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315248#M95515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-19T17:17:18Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315249#M95516</link>
      <description>The error messages would go along with what you are explaining.  I&lt;BR /&gt;
don't remember the exact message, but it appeared it was trying to&lt;BR /&gt;
delete a non existent column.&lt;BR /&gt;
&lt;BR /&gt;
Ok so if I use a for each loop how do I give the index value to&lt;BR /&gt;
remove column.  It is looking for a long, not a name.&lt;BR /&gt;
&lt;BR /&gt;
The second method are you saying to make a string of the names and&lt;BR /&gt;
then use instr to get them back out to delete them?&lt;BR /&gt;
&lt;BR /&gt;
What I am actually trying to do is I have a list of Names that I&lt;BR /&gt;
want the columns to contain, and I don't want a bunch of extra&lt;BR /&gt;
names. Ideally I would compare my list against the actual list of&lt;BR /&gt;
column names and then delete and add as necessary.  I haven't been&lt;BR /&gt;
able to figure out a good way to go about this though.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the help.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent Keller&lt;BR /&gt;
Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&lt;BR /&gt;
"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:88mj2k$fgo9@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; It would help to know exactly what kind of errors you are&lt;BR /&gt;
referring to but&lt;BR /&gt;
&amp;gt; one thing I can tell you right off the bat is that you are&lt;BR /&gt;
creating problems&lt;BR /&gt;
&amp;gt; for yourself by deleting members of a collection while in a&lt;BR /&gt;
loop. The Count&lt;BR /&gt;
&amp;gt; property is updated immediately whenever a member is added to or&lt;BR /&gt;
deleted&lt;BR /&gt;
&amp;gt; from a collection. So the moment you delete an item, your loop&lt;BR /&gt;
variable is&lt;BR /&gt;
&amp;gt; no longer valid AND you are accessing the wrong item from that&lt;BR /&gt;
point on. If&lt;BR /&gt;
&amp;gt; you delete the second item, the third takes its place, so when&lt;BR /&gt;
you access&lt;BR /&gt;
&amp;gt; item number 3, you really have item number 4 instead.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Try using a For Each loop instead. Or use your loop to collect&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; string-based index of those columns you would like to delete and&lt;BR /&gt;
delete them&lt;BR /&gt;
&amp;gt; after the loop is complete, assuming they have a string-based&lt;BR /&gt;
index.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Visit me at: http://www2.stonemedia.com/franko&lt;/FRANKO&gt;</description>
      <pubDate>Sat, 19 Feb 2000 17:57:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315249#M95516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-19T17:57:02Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315250#M95517</link>
      <description>With a For Each loop, you don't specify an index at all. It works just like&lt;BR /&gt;
the foreach statement in LISP. You will need a variable declared as the same&lt;BR /&gt;
type contained by the collection (I have no idea what it is in this case).&lt;BR /&gt;
For the sake of argument, let's say the data type is BOMColumn:&lt;BR /&gt;
&lt;BR /&gt;
dim column As BOMColumn&lt;BR /&gt;
&lt;BR /&gt;
For Each column In BOMstd.Colums&lt;BR /&gt;
    If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And column.Name &amp;lt;&amp;gt;&lt;BR /&gt;
"NAME" Then&lt;BR /&gt;
        column.Delete&lt;BR /&gt;
    End If&lt;BR /&gt;
Next&lt;BR /&gt;
&lt;BR /&gt;
Fair warning: not all collections support iteration using the For Each loop.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Visit me at: http://www2.stonemedia.com/franko&lt;BR /&gt;
&lt;BR /&gt;
"Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
news:88ml3o$fg58@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; The error messages would go along with what you are explaining.  I&lt;BR /&gt;
&amp;gt; don't remember the exact message, but it appeared it was trying to&lt;BR /&gt;
&amp;gt; delete a non existent column.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Ok so if I use a for each loop how do I give the index value to&lt;BR /&gt;
&amp;gt; remove column.  It is looking for a long, not a name.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The second method are you saying to make a string of the names and&lt;BR /&gt;
&amp;gt; then use instr to get them back out to delete them?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; What I am actually trying to do is I have a list of Names that I&lt;BR /&gt;
&amp;gt; want the columns to contain, and I don't want a bunch of extra&lt;BR /&gt;
&amp;gt; names. Ideally I would compare my list against the actual list of&lt;BR /&gt;
&amp;gt; column names and then delete and add as necessary.  I haven't been&lt;BR /&gt;
&amp;gt; able to figure out a good way to go about this though.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks for the help.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Kent Keller&lt;BR /&gt;
&amp;gt; Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt; http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:88mj2k$fgo9@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; It would help to know exactly what kind of errors you are&lt;BR /&gt;
&amp;gt; referring to but&lt;BR /&gt;
&amp;gt; &amp;gt; one thing I can tell you right off the bat is that you are&lt;BR /&gt;
&amp;gt; creating problems&lt;BR /&gt;
&amp;gt; &amp;gt; for yourself by deleting members of a collection while in a&lt;BR /&gt;
&amp;gt; loop. The Count&lt;BR /&gt;
&amp;gt; &amp;gt; property is updated immediately whenever a member is added to or&lt;BR /&gt;
&amp;gt; deleted&lt;BR /&gt;
&amp;gt; &amp;gt; from a collection. So the moment you delete an item, your loop&lt;BR /&gt;
&amp;gt; variable is&lt;BR /&gt;
&amp;gt; &amp;gt; no longer valid AND you are accessing the wrong item from that&lt;BR /&gt;
&amp;gt; point on. If&lt;BR /&gt;
&amp;gt; &amp;gt; you delete the second item, the third takes its place, so when&lt;BR /&gt;
&amp;gt; you access&lt;BR /&gt;
&amp;gt; &amp;gt; item number 3, you really have item number 4 instead.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Try using a For Each loop instead. Or use your loop to collect&lt;BR /&gt;
&amp;gt; the&lt;BR /&gt;
&amp;gt; &amp;gt; string-based index of those columns you would like to delete and&lt;BR /&gt;
&amp;gt; delete them&lt;BR /&gt;
&amp;gt; &amp;gt; after the loop is complete, assuming they have a string-based&lt;BR /&gt;
&amp;gt; index.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Visit me at: http://www2.stonemedia.com/franko&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/FRANKO&gt;&lt;/KENT&gt;</description>
      <pubDate>Sat, 19 Feb 2000 19:06:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315250#M95517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-19T19:06:30Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315251#M95518</link>
      <description>Frank&lt;BR /&gt;
&lt;BR /&gt;
I had tried something similar to this, but the problem comes in&lt;BR /&gt;
that column.delete returns "Object doesn't support property or&lt;BR /&gt;
method"&lt;BR /&gt;
&lt;BR /&gt;
The only way I have found to delete columns is&lt;BR /&gt;
&lt;BR /&gt;
BOMstd.RemoveColumn (I)&lt;BR /&gt;
&lt;BR /&gt;
With I of course being a long generated by using&lt;BR /&gt;
&lt;BR /&gt;
For I = 0 To BOMstd.ColumnCount - 1&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent Keller&lt;BR /&gt;
Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&lt;BR /&gt;
"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:88mpfa$fi67@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; With a For Each loop, you don't specify an index at all. It&lt;BR /&gt;
works just like&lt;BR /&gt;
&amp;gt; the foreach statement in LISP. You will need a variable declared&lt;BR /&gt;
as the same&lt;BR /&gt;
&amp;gt; type contained by the collection (I have no idea what it is in&lt;BR /&gt;
this case).&lt;BR /&gt;
&amp;gt; For the sake of argument, let's say the data type is BOMColumn:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; dim column As BOMColumn&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; For Each column In BOMstd.Colums&lt;BR /&gt;
&amp;gt;     If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And&lt;BR /&gt;
column.Name &amp;lt;&amp;gt;&lt;BR /&gt;
&amp;gt; "NAME" Then&lt;BR /&gt;
&amp;gt;         column.Delete&lt;BR /&gt;
&amp;gt;     End If&lt;BR /&gt;
&amp;gt; Next&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Fair warning: not all collections support iteration using the&lt;BR /&gt;
For Each loop.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;/FRANKO&gt;</description>
      <pubDate>Sun, 20 Feb 2000 04:01:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315251#M95518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-20T04:01:51Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315252#M95519</link>
      <description>Then how about this:&lt;BR /&gt;
&lt;BR /&gt;
For Each column In BOMstd.Columns&lt;BR /&gt;
    If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And column.Name &amp;lt;&amp;gt;&lt;BR /&gt;
"NAME" Then&lt;BR /&gt;
        BOMstd.RemoveColumn column.index&lt;BR /&gt;
    End If&lt;BR /&gt;
Next&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Visit me at: http://www2.stonemedia.com/franko&lt;BR /&gt;
&lt;BR /&gt;
"Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
news:88nom3$idt3@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Frank&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I had tried something similar to this, but the problem comes in&lt;BR /&gt;
&amp;gt; that column.delete returns "Object doesn't support property or&lt;BR /&gt;
&amp;gt; method"&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The only way I have found to delete columns is&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; BOMstd.RemoveColumn (I)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; With I of course being a long generated by using&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; For I = 0 To BOMstd.ColumnCount - 1&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Kent Keller&lt;BR /&gt;
&amp;gt; Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt; http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:88mpfa$fi67@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; With a For Each loop, you don't specify an index at all. It&lt;BR /&gt;
&amp;gt; works just like&lt;BR /&gt;
&amp;gt; &amp;gt; the foreach statement in LISP. You will need a variable declared&lt;BR /&gt;
&amp;gt; as the same&lt;BR /&gt;
&amp;gt; &amp;gt; type contained by the collection (I have no idea what it is in&lt;BR /&gt;
&amp;gt; this case).&lt;BR /&gt;
&amp;gt; &amp;gt; For the sake of argument, let's say the data type is BOMColumn:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; dim column As BOMColumn&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; For Each column In BOMstd.Colums&lt;BR /&gt;
&amp;gt; &amp;gt;     If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And&lt;BR /&gt;
&amp;gt; column.Name &amp;lt;&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "NAME" Then&lt;BR /&gt;
&amp;gt; &amp;gt;         column.Delete&lt;BR /&gt;
&amp;gt; &amp;gt;     End If&lt;BR /&gt;
&amp;gt; &amp;gt; Next&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Fair warning: not all collections support iteration using the&lt;BR /&gt;
&amp;gt; For Each loop.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/FRANKO&gt;&lt;/KENT&gt;</description>
      <pubDate>Sun, 20 Feb 2000 04:17:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315252#M95519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-20T04:17:01Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315253#M95520</link>
      <description>Closer&lt;BR /&gt;
&lt;BR /&gt;
It looked like it was working and then it stopped on the line&lt;BR /&gt;
&lt;BR /&gt;
If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And column.Name&lt;BR /&gt;
&amp;lt;&amp;gt; "NAME" Then&lt;BR /&gt;
&lt;BR /&gt;
Saying   "Method "Name" of object "IMcadColumnDefinition" failed.&lt;BR /&gt;
&lt;BR /&gt;
I will play with it a little and see if I can figure out what went&lt;BR /&gt;
wrong.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent Keller&lt;BR /&gt;
Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&lt;BR /&gt;
"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:88npnh$ied3@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Then how about this:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; For Each column In BOMstd.Columns&lt;BR /&gt;
&amp;gt;     If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And&lt;BR /&gt;
column.Name &amp;lt;&amp;gt;&lt;BR /&gt;
&amp;gt; "NAME" Then&lt;BR /&gt;
&amp;gt;         BOMstd.RemoveColumn column.index&lt;BR /&gt;
&amp;gt;     End If&lt;BR /&gt;
&amp;gt; Next&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Visit me at: http://www2.stonemedia.com/franko&lt;BR /&gt;
&amp;gt;&lt;/FRANKO&gt;</description>
      <pubDate>Sun, 20 Feb 2000 05:05:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315253#M95520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-20T05:05:41Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315254#M95521</link>
      <description>Frank&lt;BR /&gt;
&lt;BR /&gt;
I found this method and it seems to work fine now.&lt;BR /&gt;
&lt;BR /&gt;
       BOMstd.columns.Remove column.Index&lt;BR /&gt;
Why we have this method and the other beats me.  It was really odd&lt;BR /&gt;
with the other line in there.  It would stop on the line shown&lt;BR /&gt;
below one time and then if you exited and ran it again it would go&lt;BR /&gt;
thru a few times and then stop on the line after that one.&lt;BR /&gt;
&lt;BR /&gt;
Now I am trying to figure out how to add all the columns I want.&lt;BR /&gt;
This crazy thing lets you add duplicates, without a error message,&lt;BR /&gt;
but when you then manually go into the symstd you have a mess,&lt;BR /&gt;
that you sometimes can't clean up because there are certain&lt;BR /&gt;
columns you can't delete, but yet you have duplicates so it&lt;BR /&gt;
complains.  I was hoping to just use a on error resume next but&lt;BR /&gt;
........  I guess not.&lt;BR /&gt;
&lt;BR /&gt;
Everything in the Mcad stuff seems twice as hard.   I sure hope&lt;BR /&gt;
they are improving the code along with the help files for the next&lt;BR /&gt;
go.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent Keller&lt;BR /&gt;
Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&lt;BR /&gt;
"Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
news:88ns9h$ids5@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Closer&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; It looked like it was working and then it stopped on the line&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And&lt;BR /&gt;
column.Name&lt;BR /&gt;
&amp;gt; &amp;lt;&amp;gt; "NAME" Then&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Saying   "Method "Name" of object "IMcadColumnDefinition"&lt;BR /&gt;
failed.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I will play with it a little and see if I can figure out what&lt;BR /&gt;
went&lt;BR /&gt;
&amp;gt; wrong.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Kent Keller&lt;BR /&gt;
&amp;gt; Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt; http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:88npnh$ied3@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; Then how about this:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; For Each column In BOMstd.Columns&lt;BR /&gt;
&amp;gt; &amp;gt;     If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And&lt;BR /&gt;
&amp;gt; column.Name &amp;lt;&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "NAME" Then&lt;BR /&gt;
&amp;gt; &amp;gt;         BOMstd.RemoveColumn column.index&lt;BR /&gt;
&amp;gt; &amp;gt;     End If&lt;BR /&gt;
&amp;gt; &amp;gt; Next&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Visit me at: http://www2.stonemedia.com/franko&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/FRANKO&gt;&lt;/KENT&gt;</description>
      <pubDate>Sun, 20 Feb 2000 06:01:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315254#M95521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-20T06:01:39Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315255#M95522</link>
      <description>So what does your final loop look like? Considering the dearth of MCAD info,&lt;BR /&gt;
it sure would help to have a sample of working code. If you don't mind&lt;BR /&gt;
sharing, of course.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Visit me at: http://www2.stonemedia.com/franko&lt;BR /&gt;
&lt;BR /&gt;
"Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
news:88nvih$idu7@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Frank&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I found this method and it seems to work fine now.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;        BOMstd.columns.Remove column.Index&lt;BR /&gt;
&amp;gt; Why we have this method and the other beats me.  It was really odd&lt;BR /&gt;
&amp;gt; with the other line in there.  It would stop on the line shown&lt;BR /&gt;
&amp;gt; below one time and then if you exited and ran it again it would go&lt;BR /&gt;
&amp;gt; thru a few times and then stop on the line after that one.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Now I am trying to figure out how to add all the columns I want.&lt;BR /&gt;
&amp;gt; This crazy thing lets you add duplicates, without a error message,&lt;BR /&gt;
&amp;gt; but when you then manually go into the symstd you have a mess,&lt;BR /&gt;
&amp;gt; that you sometimes can't clean up because there are certain&lt;BR /&gt;
&amp;gt; columns you can't delete, but yet you have duplicates so it&lt;BR /&gt;
&amp;gt; complains.  I was hoping to just use a on error resume next but&lt;BR /&gt;
&amp;gt; ........  I guess not.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Everything in the Mcad stuff seems twice as hard.   I sure hope&lt;BR /&gt;
&amp;gt; they are improving the code along with the help files for the next&lt;BR /&gt;
&amp;gt; go.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Kent Keller&lt;BR /&gt;
&amp;gt; Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt; http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:88ns9h$ids5@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; Closer&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; It looked like it was working and then it stopped on the line&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And&lt;BR /&gt;
&amp;gt; column.Name&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;lt;&amp;gt; "NAME" Then&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Saying   "Method "Name" of object "IMcadColumnDefinition"&lt;BR /&gt;
&amp;gt; failed.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I will play with it a little and see if I can figure out what&lt;BR /&gt;
&amp;gt; went&lt;BR /&gt;
&amp;gt; &amp;gt; wrong.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Kent Keller&lt;BR /&gt;
&amp;gt; &amp;gt; Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt; &amp;gt; http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:88npnh$ied3@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Then how about this:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; For Each column In BOMstd.Columns&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And&lt;BR /&gt;
&amp;gt; &amp;gt; column.Name &amp;lt;&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; "NAME" Then&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;         BOMstd.RemoveColumn column.index&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     End If&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Next&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Visit me at: http://www2.stonemedia.com/franko&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/FRANKO&gt;&lt;/KENT&gt;&lt;/KENT&gt;</description>
      <pubDate>Sun, 20 Feb 2000 17:23:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315255#M95522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-20T17:23:17Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315256#M95523</link>
      <description>Well I am ashamed to say that somewhere along the way I must have&lt;BR /&gt;
started re writing the code under&lt;BR /&gt;
&lt;BR /&gt;
On Error Resume Next&lt;BR /&gt;
&lt;BR /&gt;
when it used to be above it.&lt;BR /&gt;
&lt;BR /&gt;
If I remove that then this hangs also.  I am about ready to&lt;BR /&gt;
totally give up on writing anything with the Mcad stuff.  I can&lt;BR /&gt;
never tell if it is my Newbe - ness, or the poor documentation(so&lt;BR /&gt;
if I keep working I will eventually end up with something that&lt;BR /&gt;
works, or that it just plain doesn't work at all.&lt;BR /&gt;
&lt;BR /&gt;
Frustrated......&lt;BR /&gt;
&lt;BR /&gt;
    For Each column In BOMstd.columns&lt;BR /&gt;
    Debug.Print column.Name&lt;BR /&gt;
    If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "DET" And&lt;BR /&gt;
column.Name &amp;lt;&amp;gt; "QTY" And column.Name &amp;lt;&amp;gt; "SHEET" And _&lt;BR /&gt;
       column.Name &amp;lt;&amp;gt; "NAME" And column.Name &amp;lt;&amp;gt; "DESCRIPTION" And&lt;BR /&gt;
column.Name &amp;lt;&amp;gt; "STK_SIZE" And column.Name &amp;lt;&amp;gt; "MATERIAL" And _&lt;BR /&gt;
       column.Name &amp;lt;&amp;gt; "HT" And column.Name &amp;lt;&amp;gt; "NOTES" And&lt;BR /&gt;
column.Name &amp;lt;&amp;gt; "RELEASED" And column.Name &amp;lt;&amp;gt; "REVISED" Then&lt;BR /&gt;
       BOMstd.columns.Remove column.Index&lt;BR /&gt;
    End If&lt;BR /&gt;
Next&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent Keller&lt;BR /&gt;
Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&lt;BR /&gt;
"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:88p7po$ks83@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; So what does your final loop look like? Considering the dearth&lt;BR /&gt;
of MCAD info,&lt;BR /&gt;
&amp;gt; it sure would help to have a sample of working code. If you&lt;BR /&gt;
don't mind&lt;BR /&gt;
&amp;gt; sharing, of course.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Visit me at: http://www2.stonemedia.com/franko&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:88nvih$idu7@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; Frank&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I found this method and it seems to work fine now.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;        BOMstd.columns.Remove column.Index&lt;BR /&gt;
&amp;gt; &amp;gt; Why we have this method and the other beats me.  It was really&lt;BR /&gt;
odd&lt;BR /&gt;
&amp;gt; &amp;gt; with the other line in there.  It would stop on the line shown&lt;BR /&gt;
&amp;gt; &amp;gt; below one time and then if you exited and ran it again it&lt;BR /&gt;
would go&lt;BR /&gt;
&amp;gt; &amp;gt; thru a few times and then stop on the line after that one.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Now I am trying to figure out how to add all the columns I&lt;BR /&gt;
want.&lt;BR /&gt;
&amp;gt; &amp;gt; This crazy thing lets you add duplicates, without a error&lt;BR /&gt;
message,&lt;BR /&gt;
&amp;gt; &amp;gt; but when you then manually go into the symstd you have a mess,&lt;BR /&gt;
&amp;gt; &amp;gt; that you sometimes can't clean up because there are certain&lt;BR /&gt;
&amp;gt; &amp;gt; columns you can't delete, but yet you have duplicates so it&lt;BR /&gt;
&amp;gt; &amp;gt; complains.  I was hoping to just use a on error resume next&lt;BR /&gt;
but&lt;BR /&gt;
&amp;gt; &amp;gt; ........  I guess not.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Everything in the Mcad stuff seems twice as hard.   I sure&lt;BR /&gt;
hope&lt;BR /&gt;
&amp;gt; &amp;gt; they are improving the code along with the help files for the&lt;BR /&gt;
next&lt;BR /&gt;
&amp;gt; &amp;gt; go.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Kent Keller&lt;BR /&gt;
&amp;gt; &amp;gt; Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt; &amp;gt; http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:88ns9h$ids5@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Closer&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; It looked like it was working and then it stopped on the&lt;BR /&gt;
line&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And&lt;BR /&gt;
&amp;gt; &amp;gt; column.Name&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;lt;&amp;gt; "NAME" Then&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Saying   "Method "Name" of object "IMcadColumnDefinition"&lt;BR /&gt;
&amp;gt; &amp;gt; failed.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I will play with it a little and see if I can figure out&lt;BR /&gt;
what&lt;BR /&gt;
&amp;gt; &amp;gt; went&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; wrong.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Kent Keller&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; "Frank Oquendo" &lt;FRANKO&gt; wrote in&lt;BR /&gt;
message&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; news:88npnh$ied3@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Then how about this:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; For Each column In BOMstd.Columns&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; column.Name &amp;lt;&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; "NAME" Then&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;         BOMstd.RemoveColumn column.index&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     End If&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Next&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Visit me at: http://www2.stonemedia.com/franko&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/FRANKO&gt;&lt;/KENT&gt;&lt;/KENT&gt;&lt;/FRANKO&gt;</description>
      <pubDate>Sun, 20 Feb 2000 17:42:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315256#M95523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-20T17:42:30Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315257#M95524</link>
      <description>Hi Kent &amp;amp; Frank,&lt;BR /&gt;
&lt;BR /&gt;
Here it is Monday and I find two extremely over committed people working on&lt;BR /&gt;
the weekend "Whats up with that?"  ;~)&lt;BR /&gt;
&lt;BR /&gt;
After reading your thread and thinking about your problem I started thinking&lt;BR /&gt;
about my program for partlist standardization and thought I might ask as&lt;BR /&gt;
well as share.&lt;BR /&gt;
&lt;BR /&gt;
Kent, would it work to just redefine the BOM and not try to build a circle&lt;BR /&gt;
out of a square?  For my BOM/Partlist stuff I redefined what the&lt;BR /&gt;
BOM/Partlist looked like by using a template drawing and creating my own&lt;BR /&gt;
Symbol standard.  This works great for imposing your own standard on a&lt;BR /&gt;
part/assy.  If you look through the symbol standards there is a spot in&lt;BR /&gt;
there to redefine it and apply a custom scheme.&lt;BR /&gt;
&lt;BR /&gt;
Kent Keller wrote in message &amp;lt;88p8kd$ks62@adesknews2.autodesk.com&amp;gt;...&lt;BR /&gt;
&amp;gt;Well I am ashamed to say that somewhere along the way I must have&lt;BR /&gt;
&amp;gt;started re writing the code under&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;On Error Resume Next&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;when it used to be above it.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;If I remove that then this hangs also.  I am about ready to&lt;BR /&gt;
&amp;gt;totally give up on writing anything with the Mcad stuff.  I can&lt;BR /&gt;
&amp;gt;never tell if it is my Newbe - ness, or the poor documentation(so&lt;BR /&gt;
&amp;gt;if I keep working I will eventually end up with something that&lt;BR /&gt;
&amp;gt;works, or that it just plain doesn't work at all.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;Frustrated......&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;    For Each column In BOMstd.columns&lt;BR /&gt;
&amp;gt;    Debug.Print column.Name&lt;BR /&gt;
&amp;gt;    If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "DET" And&lt;BR /&gt;
&amp;gt;column.Name &amp;lt;&amp;gt; "QTY" And column.Name &amp;lt;&amp;gt; "SHEET" And _&lt;BR /&gt;
&amp;gt;       column.Name &amp;lt;&amp;gt; "NAME" And column.Name &amp;lt;&amp;gt; "DESCRIPTION" And&lt;BR /&gt;
&amp;gt;column.Name &amp;lt;&amp;gt; "STK_SIZE" And column.Name &amp;lt;&amp;gt; "MATERIAL" And _&lt;BR /&gt;
&amp;gt;       column.Name &amp;lt;&amp;gt; "HT" And column.Name &amp;lt;&amp;gt; "NOTES" And&lt;BR /&gt;
&amp;gt;column.Name &amp;lt;&amp;gt; "RELEASED" And column.Name &amp;lt;&amp;gt; "REVISED" Then&lt;BR /&gt;
&amp;gt;       BOMstd.columns.Remove column.Index&lt;BR /&gt;
&amp;gt;    End If&lt;BR /&gt;
&amp;gt;Next&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;--&lt;BR /&gt;
&amp;gt;Kent Keller&lt;BR /&gt;
&amp;gt;Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt;http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
&amp;gt;news:88p7po$ks83@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt;&amp;gt; So what does your final loop look like? Considering the dearth&lt;BR /&gt;
&amp;gt;of MCAD info,&lt;BR /&gt;
&amp;gt;&amp;gt; it sure would help to have a sample of working code. If you&lt;BR /&gt;
&amp;gt;don't mind&lt;BR /&gt;
&amp;gt;&amp;gt; sharing, of course.&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; --&lt;BR /&gt;
&amp;gt;&amp;gt; Visit me at: http://www2.stonemedia.com/franko&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; "Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
&amp;gt;&amp;gt; news:88nvih$idu7@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; Frank&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; I found this method and it seems to work fine now.&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;        BOMstd.columns.Remove column.Index&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; Why we have this method and the other beats me.  It was really&lt;BR /&gt;
&amp;gt;odd&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; with the other line in there.  It would stop on the line shown&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; below one time and then if you exited and ran it again it&lt;BR /&gt;
&amp;gt;would go&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; thru a few times and then stop on the line after that one.&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; Now I am trying to figure out how to add all the columns I&lt;BR /&gt;
&amp;gt;want.&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; This crazy thing lets you add duplicates, without a error&lt;BR /&gt;
&amp;gt;message,&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; but when you then manually go into the symstd you have a mess,&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; that you sometimes can't clean up because there are certain&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; columns you can't delete, but yet you have duplicates so it&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; complains.  I was hoping to just use a on error resume next&lt;BR /&gt;
&amp;gt;but&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; ........  I guess not.&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; Everything in the Mcad stuff seems twice as hard.   I sure&lt;BR /&gt;
&amp;gt;hope&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; they are improving the code along with the help files for the&lt;BR /&gt;
&amp;gt;next&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; go.&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; Kent Keller&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; "Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; news:88ns9h$ids5@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; Closer&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; It looked like it was working and then it stopped on the&lt;BR /&gt;
&amp;gt;line&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; column.Name&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;lt;&amp;gt; "NAME" Then&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; Saying   "Method "Name" of object "IMcadColumnDefinition"&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; failed.&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; I will play with it a little and see if I can figure out&lt;BR /&gt;
&amp;gt;what&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; went&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; wrong.&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; Kent Keller&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; "Frank Oquendo" &lt;FRANKO&gt; wrote in&lt;BR /&gt;
&amp;gt;message&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; news:88npnh$ied3@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Then how about this:&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; For Each column In BOMstd.Columns&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;     If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "QTY" And&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; column.Name &amp;lt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; "NAME" Then&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;         BOMstd.RemoveColumn column.index&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;     End If&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Next&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Visit me at: http://www2.stonemedia.com/franko&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/FRANKO&gt;&lt;/KENT&gt;&lt;/KENT&gt;&lt;/FRANKO&gt;</description>
      <pubDate>Mon, 21 Feb 2000 18:21:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315257#M95524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-21T18:21:38Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315258#M95525</link>
      <description>Hi Michael&lt;BR /&gt;
&lt;BR /&gt;
Thanks for jumping in.&lt;BR /&gt;
&lt;BR /&gt;
I try to keep learning time to evenings and weekends, and work time to the&lt;BR /&gt;
9~5.  Hence all the activity at those times.&lt;BR /&gt;
&lt;BR /&gt;
I am not sure I follow what you are saying.   I looked thru the symbol&lt;BR /&gt;
standards and could not find a redefine method. I am not sure that would&lt;BR /&gt;
work anyhow.&lt;BR /&gt;
&lt;BR /&gt;
The issue came up when someone said the have some large qty of drawings with&lt;BR /&gt;
the symstd set to ANSI and they want to add / remove columns and change&lt;BR /&gt;
colors etc.   Since ANSI in one drawing might be different from ANSI in&lt;BR /&gt;
another, I was trying to remove all un-used un-needed columns etc. and&lt;BR /&gt;
verify that what was wanted was either there or add it back.&lt;BR /&gt;
&lt;BR /&gt;
If I change to a different standard, the existing partslist will need to be&lt;BR /&gt;
deleted and recreated.  We didn't want to have to do that if possible.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent Keller&lt;BR /&gt;
Strobe Data Inc.&lt;BR /&gt;
www.strobedata.com&lt;BR /&gt;
&lt;BR /&gt;
Beta. Software undergoes beta testing shortly before it's released.&lt;BR /&gt;
Beta is Latin for "still doesn't work."&lt;BR /&gt;
&lt;BR /&gt;
"Michael Browne" &lt;MBROWNE&gt; wrote in message&lt;BR /&gt;
news:88rvn5$pli28@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Hi Kent &amp;amp; Frank,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Here it is Monday and I find two extremely over committed people working&lt;BR /&gt;
on&lt;BR /&gt;
&amp;gt; the weekend "Whats up with that?"  ;~)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; After reading your thread and thinking about your problem I started&lt;BR /&gt;
thinking&lt;BR /&gt;
&amp;gt; about my program for partlist standardization and thought I might ask as&lt;BR /&gt;
&amp;gt; well as share.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Kent, would it work to just redefine the BOM and not try to build a circle&lt;BR /&gt;
&amp;gt; out of a square?  For my BOM/Partlist stuff I redefined what the&lt;BR /&gt;
&amp;gt; BOM/Partlist looked like by using a template drawing and creating my own&lt;BR /&gt;
&amp;gt; Symbol standard.  This works great for imposing your own standard on a&lt;BR /&gt;
&amp;gt; part/assy.  If you look through the symbol standards there is a spot in&lt;BR /&gt;
&amp;gt; there to redefine it and apply a custom scheme.&lt;/MBROWNE&gt;</description>
      <pubDate>Mon, 21 Feb 2000 19:12:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315258#M95525</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-21T19:12:03Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315259#M95526</link>
      <description>Frank&lt;BR /&gt;
&lt;BR /&gt;
I finally got something to work.  It isn't pretty, but so far it&lt;BR /&gt;
seems to work&lt;BR /&gt;
&lt;BR /&gt;
startover:&lt;BR /&gt;
    For i = 0 To BOMstd.columns.Count - 1&lt;BR /&gt;
    Set column = BOMstd.columns(i)&lt;BR /&gt;
    If column.Name &amp;lt;&amp;gt; "ITEM" And column.Name &amp;lt;&amp;gt; "DET" And&lt;BR /&gt;
column.Name &amp;lt;&amp;gt; "QTY" And column.Name &amp;lt;&amp;gt; "SHEET" And _&lt;BR /&gt;
       column.Name &amp;lt;&amp;gt; "NAME" And column.Name &amp;lt;&amp;gt; "DESCRIPTION" And&lt;BR /&gt;
column.Name &amp;lt;&amp;gt; "STK_SIZE" And column.Name &amp;lt;&amp;gt; "MATERIAL" And _&lt;BR /&gt;
       column.Name &amp;lt;&amp;gt; "HT" And column.Name &amp;lt;&amp;gt; "NOTES" And&lt;BR /&gt;
column.Name &amp;lt;&amp;gt; "RELEASED" And column.Name &amp;lt;&amp;gt; "REVISED" Then&lt;BR /&gt;
       BOMstd.RemoveColumn (i)&lt;BR /&gt;
    GoTo startover:&lt;BR /&gt;
    End If&lt;BR /&gt;
Next&lt;BR /&gt;
&lt;BR /&gt;
Now I am trying to figure out adding columns and I have a feeling&lt;BR /&gt;
I am making it a lot harder than it should be.  I haven't been&lt;BR /&gt;
able to figure out where it is that is causing me to go into a&lt;BR /&gt;
never ending loop.  I think it might have something to do with&lt;BR /&gt;
mycollection counts from 1up and the Bomstand.columns count from 0&lt;BR /&gt;
up.  As usual I am floundering,  See any glaring problems with&lt;BR /&gt;
this other than it doesn't work 8-)&lt;BR /&gt;
&lt;BR /&gt;
Dim strColumnName As String&lt;BR /&gt;
For Each column In BOMstd.columns&lt;BR /&gt;
strColumnName = strColumnName &amp;amp; " " &amp;amp; column.Name&lt;BR /&gt;
Next&lt;BR /&gt;
 Debug.Print strColumnName&lt;BR /&gt;
Dim MyCollection As New Collection&lt;BR /&gt;
Dim fOO As String&lt;BR /&gt;
fOO = "ITEM"&lt;BR /&gt;
MyCollection.Add fOO&lt;BR /&gt;
&lt;SNIP many="" more="" foo=""&gt;&lt;BR /&gt;
fOO = "REVISED"&lt;BR /&gt;
MyCollection.Add fOO&lt;BR /&gt;
&lt;BR /&gt;
Dim IsThere As Variant&lt;BR /&gt;
addagain:&lt;BR /&gt;
For i = 1 To MyCollection.Count&lt;BR /&gt;
ilow = i - 1&lt;BR /&gt;
IsThere = InStr(strColumnName, MyCollection.Item(i))&lt;BR /&gt;
Debug.Print MyCollection.Item(i)&lt;BR /&gt;
If IsThere &amp;lt;&amp;gt; 0 Then&lt;BR /&gt;
Set column = BOMstd.columns.Item(i)&lt;BR /&gt;
    column.COLUMNTYPE = sbUnknownType&lt;BR /&gt;
    If column.Name = "ITEM" Or column.Name = "QTY" Or column.Name&lt;BR /&gt;
= "SHEET" Then&lt;BR /&gt;
        column.DataType = sbInteger&lt;BR /&gt;
    Else&lt;BR /&gt;
        column.DataType = sbGeneralText&lt;BR /&gt;
    End If&lt;BR /&gt;
Else&lt;BR /&gt;
    Set column = BOMstd.columns.Item(ilow)&lt;BR /&gt;
    If column.Name = "ITEM" Or column.Name = "QTY" Or column.Name&lt;BR /&gt;
= "SHEET" Then&lt;BR /&gt;
        DataType = sbInteger&lt;BR /&gt;
    Else&lt;BR /&gt;
        DataType = sbGeneralText&lt;BR /&gt;
    End If&lt;BR /&gt;
        Set column = BOMstd.AddColumn(sbUnknownType, DataType,&lt;BR /&gt;
MyCollection.Item(i), "PartNumber")&lt;BR /&gt;
        GoTo addagain:&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
Next&lt;BR /&gt;
--&lt;BR /&gt;
Kent Keller&lt;BR /&gt;
Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&lt;BR /&gt;
"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:88p7po$ks83@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; So what does your final loop look like? Considering the dearth&lt;BR /&gt;
of MCAD info,&lt;BR /&gt;
&amp;gt; it sure would help to have a sample of working code. If you&lt;BR /&gt;
don't mind&lt;BR /&gt;
&amp;gt; sharing, of course.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Visit me at: http://www2.stonemedia.com/franko&lt;/FRANKO&gt;&lt;/SNIP&gt;</description>
      <pubDate>Tue, 22 Feb 2000 04:40:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315259#M95526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-22T04:40:01Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315260#M95527</link>
      <description>I  switched a few things around and got it going.  So far I&lt;BR /&gt;
haven't blown anything up with it so I have my fingers crossed.&lt;BR /&gt;
Just a couple more things to go.&lt;BR /&gt;
&lt;BR /&gt;
The ones that I think must be busted are&lt;BR /&gt;
&lt;BR /&gt;
IsCustomBlockUsed&lt;BR /&gt;
and&lt;BR /&gt;
Scale in Symbb.StandardMgr.CurrentStandard&lt;BR /&gt;
&lt;BR /&gt;
Neither one seems to want to accept anything I try setting them&lt;BR /&gt;
to.&lt;BR /&gt;
&lt;BR /&gt;
Anyone been able to do anything with these?&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent Keller&lt;BR /&gt;
Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&lt;BR /&gt;
"Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
news:88t3h2$18h3@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Frank&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Now I am trying to figure out adding columns and I have a&lt;BR /&gt;
feeling&lt;BR /&gt;
&amp;gt; I am making it a lot harder than it should be.  I haven't been&lt;BR /&gt;
&amp;gt; able to figure out where it is that is causing me to go into a&lt;BR /&gt;
&amp;gt; never ending loop.  I think it might have something to do with&lt;BR /&gt;
&amp;gt; mycollection counts from 1up and the Bomstand.columns count from&lt;BR /&gt;
0&lt;BR /&gt;
&amp;gt; up.  As usual I am floundering,  See any glaring problems with&lt;BR /&gt;
&amp;gt; this other than it doesn't work 8-)&lt;/KENT&gt;</description>
      <pubDate>Tue, 22 Feb 2000 06:30:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/unanswered-mdt-questions/m-p/315260#M95527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-22T06:30:58Z</dc:date>
    </item>
  </channel>
</rss>

