I am trying to add an entire Excel table into a datatable and declaring variables like this:
workbook = APP.Workbooks.Open(fileString)
worksheet = workbook.Worksheets("Report")
It is able to read from the Excel file. I have checked using a message box:
MsgBox(worksheet.Cells(1, 1).Value)
This works but I can't find a method to add the values from the Excel file into my datatable:
Dim table As New DataTable
table.Columns.Add("DATE")
table.Columns.Add("VALUE")
Can anyone help me with this?