<?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 Control array in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/control-array/m-p/319941#M94009</link>
    <description>Hi !&lt;BR /&gt;
&lt;BR /&gt;
I want to create a control array for labels.&lt;BR /&gt;
&lt;BR /&gt;
Like :&lt;BR /&gt;
&lt;BR /&gt;
Do While i &amp;lt; frmMAJ.label.Count&lt;BR /&gt;
    frmMAJ.label(i).Visible = False&lt;BR /&gt;
    i = i + 1&lt;BR /&gt;
Loop&lt;BR /&gt;
&lt;BR /&gt;
This is working in VB but not in VBA</description>
    <pubDate>Mon, 17 Apr 2000 14:20:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-04-17T14:20:20Z</dc:date>
    <item>
      <title>Control array</title>
      <link>https://forums.autodesk.com/t5/vba-forum/control-array/m-p/319941#M94009</link>
      <description>Hi !&lt;BR /&gt;
&lt;BR /&gt;
I want to create a control array for labels.&lt;BR /&gt;
&lt;BR /&gt;
Like :&lt;BR /&gt;
&lt;BR /&gt;
Do While i &amp;lt; frmMAJ.label.Count&lt;BR /&gt;
    frmMAJ.label(i).Visible = False&lt;BR /&gt;
    i = i + 1&lt;BR /&gt;
Loop&lt;BR /&gt;
&lt;BR /&gt;
This is working in VB but not in VBA</description>
      <pubDate>Mon, 17 Apr 2000 14:20:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/control-array/m-p/319941#M94009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-17T14:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Control array</title>
      <link>https://forums.autodesk.com/t5/vba-forum/control-array/m-p/319942#M94010</link>
      <description>VBA doesn't support control arrays. However, you can dynamically add and&lt;BR /&gt;
position controls.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Visit me at http://www2.stonemedia.com/franko&lt;BR /&gt;
&lt;BR /&gt;
"David L. Nadeau" &lt;DAVID.L.NADEAU&gt; wrote in message&lt;BR /&gt;
news:eeffedd.-1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Hi !&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I want to create a control array for labels.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Like :&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Do While i &amp;lt; frmMAJ.label.Count&lt;BR /&gt;
&amp;gt;     frmMAJ.label(i).Visible = False&lt;BR /&gt;
&amp;gt;     i = i + 1&lt;BR /&gt;
&amp;gt; Loop&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; This is working in VB but not in VBA&lt;BR /&gt;
&amp;gt;&lt;/DAVID.L.NADEAU&gt;</description>
      <pubDate>Mon, 17 Apr 2000 14:27:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/control-array/m-p/319942#M94010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-17T14:27:52Z</dc:date>
    </item>
    <item>
      <title>Control array--&gt; just learned this from Randall this morning</title>
      <link>https://forums.autodesk.com/t5/vba-forum/control-array/m-p/319943#M94011</link>
      <description>David L:&lt;BR /&gt;
I am still trying to figure these things out.....&lt;BR /&gt;
&lt;BR /&gt;
1) create 2 label and 1 button&lt;BR /&gt;
&lt;BR /&gt;
Dim CtL1 As Control, CtL2 As Control&lt;BR /&gt;
Private Sub AddAButton()&lt;BR /&gt;
    Set CtL1 = UserForm1.Controls.Add("Forms.TextBox.1", "TextBoxA", True)&lt;BR /&gt;
    CtL1.Left = 0&lt;BR /&gt;
    CtL1.top = 0&lt;BR /&gt;
    CtL1.Text = "Hello Randall"&lt;BR /&gt;
&lt;BR /&gt;
    Set CtL2 = UserForm1.Controls.Add("Forms.TextBox.1", "TextBoxB", True)&lt;BR /&gt;
    CtL2.Left = 0&lt;BR /&gt;
    CtL2.top = 30&lt;BR /&gt;
    CtL2.Text = "Thank you!"&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CommandButton1_Click()&lt;BR /&gt;
    Label1.Caption = CtL1.Value&lt;BR /&gt;
    Label2.Caption = CtL2.Value&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Private Sub UserForm_Initialize()&lt;BR /&gt;
    AddAButton&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
David L. Nadeau wrote in message ...&lt;BR /&gt;
&amp;gt;Hi !&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;I want to create a control array for labels.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;Like :&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;Do While i &amp;lt; frmMAJ.label.Count&lt;BR /&gt;
&amp;gt;    frmMAJ.label(i).Visible = False&lt;BR /&gt;
&amp;gt;    i = i + 1&lt;BR /&gt;
&amp;gt;Loop&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;This is working in VB but not in VBA&lt;BR /&gt;
&amp;gt;</description>
      <pubDate>Mon, 17 Apr 2000 17:49:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/control-array/m-p/319943#M94011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-17T17:49:36Z</dc:date>
    </item>
  </channel>
</rss>

