Hi
I am trying to build an array from an excel spread sheet, I can connect to the sheet fine and pull out a dataset, but I dont know how to populate the array, my code is below, would be grateful for any help.
Thanks

VB Code:
  1. Dim myDataset As New DataSet()
  2.         Dim strConn As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
  3.         "Data Source=" & Server.MapPath("/autoexcel/") & "excel/" & strFileNameOnly & ";" & _
  4.         "Extended Properties=Excel 8.0;"
  5.         lblMessage.Text = strFileNameOnly
  6.         ''You must use the $ after the object you reference in the spreadsheet
  7.         Dim myData As New OleDbDataAdapter("SELECT * FROM [Sheet1$]", strConn)
  8.         myData.TableMappings.Add("Table", "ExcelTest")
  9.  
  10.         myData.Fill(myDataset)
  11.  
  12.         Dim resultArray As Array
  13.         resultArray = ?????????