title: Using Each in For Loop
body: <p>I'm trying to use the Each keyword in For loop to enter the values in an array, but I couldn't do it in the below code, could you help me understanding the error in below code.</p>
  
  <pre class="lang-vb prettyprint-override"><code>Dim Arr(4)
  
  For Each Element in Arr
  
      Element = InputBox("Enter Data")
  
  Next
  
  'Nothing is getting stored in the Array: Arr()
  </code></pre>