title: Multiselect vba
body: <p>Below is my code for opening multiple files and then taking some actions on them. I  am only mentioning the part where i need help.</p>
  
  <pre><code>Sub Sample()
  Dim myFile As Variant
  Dim i As Integer
  
  myFile = Application.GetOpenFilename(MultiSelect:=True)
  
  If IsArray(myFile) Then 
      For i = LBound(myFile) To UBound(myFile)
      Set mywkbook= Workbooks.Open(myFile(i))
      Next i
  End If
  End Sub
  </code></pre>
  
  <p>This works good.
  But I want "mywkbook" variable to have different value for different workbook so that I can work on them.
  Please help</p>