title: Find value in a multi-dimensional array
body: <p>myArray is storing data I need to check before I call a Sub procedure. It has 3 columns:</p>
  
  <ul>
  <li>Col1: string</li>
  <li>Col2: timestamp</li>
  <li>Col3: string</li>
  </ul>
  
  <p>I need to check:</p>
  
  <ol>
  <li>If a string, given by the funcion argument, exists in column 1</li>
  <li><p>If it does, then what is the time-difference from now to the newest timestamp of the corresponding string in column 2</p>
  
  <pre><code>For n = 1 To UBound(myArray, 2)
      If myArray(1, n) = myString Then
          myTimeStamp = myArray(2, n) 'find the timestamp of this string in col2
          myTimeDiff = DateDiff("n", myTimeStamp, DateTime.Now()) ' calculate the time difference in minutes
          myIndex = n 'return the array index (n)
      End If
  Next n
  </code></pre>
  
  <p>Because the array is filling the timestamps sequentially, I know the latest for a given string in col1 is also the newest. </p></li>
  </ol>
  
  <p>But myIndex is returning an empty string, why?</p>