title: Array throws error when called
body: <p>I am creating an array from the values of a range, but when trying to get the values from the array, an error comes up. The code is:</p>
  
  <pre><code>Dim nombre() As Variant 'Declares the array
  Dim arreglo As Long 'Declares the length of the array
  
  fin = Cells(Rows.Count, "B").End(xlUp).Row 'Gets the last column with data
  nombre = Range("B3:B" &amp; fin).Value 'Fills the array with the values within the range
  arreglo = Application.CountA(nombre) 'Gets the length of the array, in this case, 52
  
  MsgBox nombre(1) 'This throws an error
  </code></pre>
  
  <p>I think the problem arises when filling the arrange with values.</p>
  
  <p>Thank you in advance.</p>