<?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: Help VBA in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/help-vba/m-p/6511978#M8664</link>
    <description>&lt;P&gt;Thanks, I'll try.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2016 23:44:18 GMT</pubDate>
    <dc:creator>melo_gg</dc:creator>
    <dc:date>2016-08-19T23:44:18Z</dc:date>
    <item>
      <title>Help VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/help-vba/m-p/6511933#M8662</link>
      <description>&lt;P&gt;Hello friends,&lt;BR /&gt;I'm reading a book that left me VBA, I'm starting and I was blocked with an error that tells me the program is the below error: the compilation error: Expected: end of instruction.&lt;BR /&gt;Is there anyone who can help me?&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option Explicit&lt;/P&gt;&lt;P&gt;Global SS As AcadSelectionSet&lt;BR /&gt;Global BLKS As AcadBlocks&lt;BR /&gt;Global BLK As AcadBlock&lt;BR /&gt;Global Grps(0 To 1) As Integer&lt;BR /&gt;Global Dats(0 To 1) As Variant&lt;BR /&gt;Global Filter1, Filter2 As Variant&lt;/P&gt;&lt;P&gt;Sub BlockCounter()&lt;BR /&gt;Grps(0) = 0: Dats(0) = "INSERT"&lt;BR /&gt;Grps(1) = 2: Dats(1) = ""&lt;BR /&gt;On Error Resume Next&lt;BR /&gt;Set SS = ThisDrawing.SelectionSets.Add("SS")&lt;BR /&gt;If Err.Number &amp;lt;&amp;gt; 0 Then&lt;BR /&gt;Set SS = ThisDrawing.SelectionSets.Item("SS")&lt;BR /&gt;End If&lt;BR /&gt;SS.Clear&lt;BR /&gt;Set BLKS = ThisDrawing.Blocks&lt;BR /&gt;Dim J As Integer&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;J = BLKS.Count 1&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;For I = 2 To J&lt;BR /&gt;Set BLK = BLKS.Item(I)&lt;BR /&gt;Dats(1) = BLK.Name&lt;BR /&gt;Filter1 = Grps&lt;BR /&gt;Filter2 = Dats&lt;BR /&gt;SS.Select acSelectionSetAll, , , Filter1, Filter2&lt;BR /&gt;Out$ = BLK.Name &amp;amp; " " &amp;amp; Str$(SS.Count)&lt;BR /&gt;BlockCount.ListBox1.AddItem Out$&lt;BR /&gt;SS.Clear&lt;BR /&gt;Next I&lt;BR /&gt;While 1 = 1&lt;BR /&gt;BlockCount.show&lt;BR /&gt;Wend&lt;BR /&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 23:13:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/help-vba/m-p/6511933#M8662</guid>
      <dc:creator>melo_gg</dc:creator>
      <dc:date>2016-08-19T23:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/help-vba/m-p/6511945#M8663</link>
      <description>&lt;P&gt;Remove the "1". It should just be&lt;/P&gt;&lt;P&gt;J = BLKS,Count&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 23:22:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/help-vba/m-p/6511945#M8663</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2016-08-19T23:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/help-vba/m-p/6511978#M8664</link>
      <description>&lt;P&gt;Thanks, I'll try.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 23:44:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/help-vba/m-p/6511978#M8664</guid>
      <dc:creator>melo_gg</dc:creator>
      <dc:date>2016-08-19T23:44:18Z</dc:date>
    </item>
  </channel>
</rss>

