
Originally Posted by
bizzzzzare
Hi,
As Ramya suggested Importing data from excel sheet into your datatable can be achieved.
But incase you wish to read Excel values into your script, try this....
dim sExcelObj
dim sWorkBook
dim sWorkSheets
dim sValue
set sExcelObj = CreateObject("Excel.Application")
sExcelObj.Visible = true
set sWorkBook = sExcelObj.Workbooks.Open ("path of file")
set sWorkSheets = sWorkBook.ActiveWorkbook.worksheets ("sheetname")
sValue = sWorkSheets.cells(row,col).value
You can also create an array to continously loop through your excel sheet and read all required values.
Cheers...