Micro Focus QTP (UFT) Forums
Importing data from Excel - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Importing data from Excel (/Thread-Importing-data-from-Excel)



Importing data from Excel - kriday - 07-10-2013

Hi All
I want to import data excel sheet in to DataTable. For this First I have created Excel file Named as First.xls in ExcelFiles folder in C. Then in Qtp script I have written like this

Code:
DataTable.Import "c:\ExcelFiles\First.xls"

but I am getting the following error

Code:
A general error occurred while importing file c:\ExcelFiles\First.xls.

I don' t know what is the problem
I need help on this
Thanks in advance


RE: Importing data from Excel - Ankur - 07-10-2013

I hope the sheet is not already open on your desktop. If this doesn't solve the issue please attach the file here.