<?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/array-of-controls/m-p/342957#M81842</link>
    <description>Hi Rodney&lt;BR /&gt;
&lt;BR /&gt;
For x = 0 to (NumberOfControls -1)&lt;BR /&gt;
  Var = FrameName(x).Value &lt;BR /&gt;
Next x&lt;BR /&gt;
&lt;BR /&gt;
That's it...&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
-- &lt;BR /&gt;
Juerg Menzi&lt;BR /&gt;
MENZI ENGINEERING GmbH, Switzerland&lt;BR /&gt;
http://www.menziengineering.ch&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Rodney D. Lester" schrieb:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; The controls are in a frame... What is the code to loop through them...&lt;BR /&gt;
&amp;gt; My sample code does not work...</description>
    <pubDate>Fri, 17 Aug 2001 07:46:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2001-08-17T07:46:09Z</dc:date>
    <item>
      <title>Array of Controls...</title>
      <link>https://forums.autodesk.com/t5/vba-forum/array-of-controls/m-p/342954#M81839</link>
      <description>In VB6 I can create an array of controls, like a textbox(0 to 6), but I cant&lt;BR /&gt;
do that on a vba form...&lt;BR /&gt;
If I have a group of similar controls (textbox1, textbox2, textbox3) how can&lt;BR /&gt;
I loop through them&lt;BR /&gt;
with this type of code:&lt;BR /&gt;
&lt;BR /&gt;
for x = 1 to 3&lt;BR /&gt;
    var = userform1.textbox(x).value&lt;BR /&gt;
next&lt;BR /&gt;
&lt;BR /&gt;
Rodney</description>
      <pubDate>Fri, 17 Aug 2001 04:28:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/array-of-controls/m-p/342954#M81839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-17T04:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Array of Controls...</title>
      <link>https://forums.autodesk.com/t5/vba-forum/array-of-controls/m-p/342955#M81840</link>
      <description>Hi Rodney&lt;BR /&gt;
&lt;BR /&gt;
Use the Frame control and place the other controls inside. Then you can loop&lt;BR /&gt;
through the controls like you want.&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
-- &lt;BR /&gt;
Juerg Menzi&lt;BR /&gt;
MENZI ENGINEERING GmbH, Switzerland&lt;BR /&gt;
http://www.menziengineering.ch&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Rodney D. Lester" schrieb:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; In VB6 I can create an array of controls, like a textbox(0 to 6), but I cant&lt;BR /&gt;
&amp;gt; do that on a vba form...&lt;BR /&gt;
&amp;gt; If I have a group of similar controls (textbox1, textbox2, textbox3) how can&lt;BR /&gt;
&amp;gt; I loop through them&lt;BR /&gt;
&amp;gt; with this type of code:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; for x = 1 to 3&lt;BR /&gt;
&amp;gt;     var = userform1.textbox(x).value&lt;BR /&gt;
&amp;gt; next&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Rodney</description>
      <pubDate>Fri, 17 Aug 2001 04:59:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/array-of-controls/m-p/342955#M81840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-17T04:59:57Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/array-of-controls/m-p/342956#M81841</link>
      <description>The controls are in a frame... What is the code to loop through them...&lt;BR /&gt;
My sample code does not work...&lt;BR /&gt;
&lt;BR /&gt;
Rodney&lt;BR /&gt;
&lt;BR /&gt;
"Jürg Menzi" &lt;MENZI_ENGINEERING&gt; wrote in message&lt;BR /&gt;
news:3B7D154D.38D7825D@bluewin.ch...&lt;BR /&gt;
&amp;gt; Hi Rodney&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Use the Frame control and place the other controls inside. Then you can&lt;BR /&gt;
loop&lt;BR /&gt;
&amp;gt; through the controls like you want.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Cheers&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Juerg Menzi&lt;BR /&gt;
&amp;gt; MENZI ENGINEERING GmbH, Switzerland&lt;BR /&gt;
&amp;gt; http://www.menziengineering.ch&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Rodney D. Lester" schrieb:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; In VB6 I can create an array of controls, like a textbox(0 to 6), but I&lt;BR /&gt;
cant&lt;BR /&gt;
&amp;gt; &amp;gt; do that on a vba form...&lt;BR /&gt;
&amp;gt; &amp;gt; If I have a group of similar controls (textbox1, textbox2, textbox3) how&lt;BR /&gt;
can&lt;BR /&gt;
&amp;gt; &amp;gt; I loop through them&lt;BR /&gt;
&amp;gt; &amp;gt; with this type of code:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; for x = 1 to 3&lt;BR /&gt;
&amp;gt; &amp;gt;     var = userform1.textbox(x).value&lt;BR /&gt;
&amp;gt; &amp;gt; next&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Rodney&lt;/MENZI_ENGINEERING&gt;</description>
      <pubDate>Fri, 17 Aug 2001 07:29:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/array-of-controls/m-p/342956#M81841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-17T07:29:54Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/array-of-controls/m-p/342957#M81842</link>
      <description>Hi Rodney&lt;BR /&gt;
&lt;BR /&gt;
For x = 0 to (NumberOfControls -1)&lt;BR /&gt;
  Var = FrameName(x).Value &lt;BR /&gt;
Next x&lt;BR /&gt;
&lt;BR /&gt;
That's it...&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
-- &lt;BR /&gt;
Juerg Menzi&lt;BR /&gt;
MENZI ENGINEERING GmbH, Switzerland&lt;BR /&gt;
http://www.menziengineering.ch&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Rodney D. Lester" schrieb:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; The controls are in a frame... What is the code to loop through them...&lt;BR /&gt;
&amp;gt; My sample code does not work...</description>
      <pubDate>Fri, 17 Aug 2001 07:46:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/array-of-controls/m-p/342957#M81842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-17T07:46:09Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/array-of-controls/m-p/342958#M81843</link>
      <description>How do I know which control I am getting with the X index?&lt;BR /&gt;
&lt;BR /&gt;
Rodney&lt;BR /&gt;
&lt;BR /&gt;
"Jürg Menzi" &lt;MENZI_ENGINEERING&gt; wrote in message&lt;BR /&gt;
news:3B7D3C41.19893C06@bluewin.ch...&lt;BR /&gt;
&amp;gt; Hi Rodney&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; For x = 0 to (NumberOfControls -1)&lt;BR /&gt;
&amp;gt;   Var = FrameName(x).Value&lt;BR /&gt;
&amp;gt; Next x&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; That's it...&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Cheers&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Juerg Menzi&lt;BR /&gt;
&amp;gt; MENZI ENGINEERING GmbH, Switzerland&lt;BR /&gt;
&amp;gt; http://www.menziengineering.ch&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Rodney D. Lester" schrieb:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; The controls are in a frame... What is the code to loop through them...&lt;BR /&gt;
&amp;gt; &amp;gt; My sample code does not work...&lt;/MENZI_ENGINEERING&gt;</description>
      <pubDate>Fri, 17 Aug 2001 08:42:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/array-of-controls/m-p/342958#M81843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-17T08:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Array of Controls...</title>
      <link>https://forums.autodesk.com/t5/vba-forum/array-of-controls/m-p/342959#M81844</link>
      <description>Randal Rath at VbDesign has a routine that works by assigning the 'index number'&lt;BR /&gt;
to the control's tag property. Then you can loop through the controls and check&lt;BR /&gt;
the 'tag' value to know which control it is working on. Silly that vba does not&lt;BR /&gt;
support control arrays.&lt;BR /&gt;
Go to his web site and look around, the routine is there somewhere.&lt;BR /&gt;
&lt;BR /&gt;
Tom&lt;BR /&gt;
&lt;BR /&gt;
"Rodney D. Lester" wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; In VB6 I can create an array of controls, like a textbox(0 to 6), but I cant&lt;BR /&gt;
&amp;gt; do that on a vba form...&lt;BR /&gt;
&amp;gt; If I have a group of similar controls (textbox1, textbox2, textbox3) how can&lt;BR /&gt;
&amp;gt; I loop through them&lt;BR /&gt;
&amp;gt; with this type of code:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; for x = 1 to 3&lt;BR /&gt;
&amp;gt;     var = userform1.textbox(x).value&lt;BR /&gt;
&amp;gt; next&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Rodney</description>
      <pubDate>Fri, 17 Aug 2001 12:06:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/array-of-controls/m-p/342959#M81844</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-17T12:06:24Z</dc:date>
    </item>
  </channel>
</rss>

