abdul_rp
12 years agoContributor
Invalid Use of Null error while reading data from an Excel sheet
Hi,
I am getting an error saying "Invalid Use of Null" while reading data from Excel sheet, I am getting this error for the Cell's fromat type Number, whereas I am able to read the data from other formats with any problem. Following is the piece of code I am using to read the data from Excel sheet.
Sub MainTest
Set DataDriver = DDT.ExcelDriver("C:\\Scenario.xls","Scenario1")
While Not DataDriver.EOF
MsgBox(DataDriver.Value("INPUTDATA"))
DataDriver.Next
Wend
End Sub
Regards,
Abdul
I am getting an error saying "Invalid Use of Null" while reading data from Excel sheet, I am getting this error for the Cell's fromat type Number, whereas I am able to read the data from other formats with any problem. Following is the piece of code I am using to read the data from Excel sheet.
Sub MainTest
Set DataDriver = DDT.ExcelDriver("C:\\Scenario.xls","Scenario1")
While Not DataDriver.EOF
MsgBox(DataDriver.Value("INPUTDATA"))
DataDriver.Next
Wend
End Sub
Regards,
Abdul