<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:s="http://www.techrepublic.com/search" xmlns:dc="http://purl.org/dc/elements/1.1/"  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
    <title><![CDATA[Questions & Answers: VBA in excel help. looping through a two dimensional array ]]></title>
    <link><![CDATA[http://www.techrepublic.com/forum/questions/101-401052/vba-in-excel-help-looping-through-a-two-dimensional-array]]></link>
    <atom:link rel="hub" type="application/rss+xml" href="http://pubsubhubbub.appspot.com/" />
    <atom:link rel="self" type="application/rss+xml" href="http://www.techrepublic.com/forum/questions/101-401052/rss" />

    <description><![CDATA[]]></description>
    <language>en-us</language>
    <lastBuildDate>2013-06-17T23:52:27-07:00</lastBuildDate>
             

    <item>
        <title><![CDATA[VBA in excel help. looping through a two dimensional array]]></title>
        <link><![CDATA[http://www.techrepublic.com/forum/questions/101-401052/vba-in-excel-help-looping-through-a-two-dimensional-array?#msg-3739958]]></link>
        <description><![CDATA[I need help with this vba hand written macro. i am trying to loop through a two dimensional array with elements that takes values from their respected cell locations. I want to iterate through all the array elements and assign each element a value that is a number within the excel cell location and message the wale. it works fine until the last iteration is completed. once the last iteration is completed it says, &quot;type 13 error type mismatch&quot; any help would be greatly appreciated. thanks in advance!---code----Sub arrayfun()Dim arraytest(1 To 5, 1 To 2) As DoubleFor j = LBound(arraytest) To UBound(arraytest)For i = LBound(arraytest) To UBound(arraytest)arraytest(i, j) = ThisWorkbook.Sheets(&quot;sheet1&quot;).Cells(i, j).ValueMsgBox (arraytest(i, j))NextNextEnd Sub]]></description>
        <guid><![CDATA[http://www.techrepublic.com/forum/questions/101-401052/vba-in-excel-help-looping-through-a-two-dimensional-array?#msg-3739958]]></guid>
        <dc:creator><![CDATA[swahrenburg]]></dc:creator>
        <pubDate>Fri, 11 Jan 2013 13:10:22 -0800</pubDate>
    </item>
             

    <item>
        <title><![CDATA[VBA in excel help. looping through a two dimensional array]]></title>
        <link><![CDATA[http://www.techrepublic.com/forum/questions/101-401052/vba-in-excel-help-looping-through-a-two-dimensional-array?#msg-3739945]]></link>
        <description><![CDATA[I need help with this vba hand written macro. i am trying to loop through a two dimensional array with elements that takes values from their respected cell locations. I want to iterate through all the array elements and assign each element a value that is a number within the excel cell location and message the wale. it works fine until the last iteration is completed. once the last iteration is completed it says, &quot;type 13 error type mismatch&quot; any help would be greatly appreciated. thanks in advance!---code----Sub arrayfun()Dim arraytest(1 To 5, 1 To 2) As DoubleFor j = LBound(arraytest) To UBound(arraytest)For i = LBound(arraytest) To UBound(arraytest)arraytest(i, j) = ThisWorkbook.Sheets(&quot;sheet1&quot;).Cells(i, j).ValueMsgBox (arraytest(i, j))NextNextEnd Sub]]></description>
        <guid><![CDATA[http://www.techrepublic.com/forum/questions/101-401052/vba-in-excel-help-looping-through-a-two-dimensional-array?#msg-3739945]]></guid>
        <dc:creator><![CDATA[swahrenburg]]></dc:creator>
        <pubDate>Fri, 11 Jan 2013 13:09:03 -0800</pubDate>
    </item>
    </channel>
</rss>

