02-01-2012, 10:06 PM
Hi,
Please can any one let me know how to retrieve data from excel to datatable?
Regards,
Shwetha
Please can any one let me know how to retrieve data from excel to datatable?
Regards,
Shwetha
How to retrieve data from excel to datatable
|
02-01-2012, 10:06 PM
Hi,
Please can any one let me know how to retrieve data from excel to datatable? Regards, Shwetha
02-01-2012, 11:19 PM
Hi,
Please find the Code below: Code: set objexcel = createobject("Excel.application") Also find the attached screenshot of the excel i was using. Regards, Mohit
02-02-2012, 10:07 AM
Hi Shwetha,
In order to get the datas from excel to QTp datatable, QTp provides import feture... Use the below code Datatable.Import "C:\SampleFile.xls","<SheetNameInExcel(SourceSheet)>","<SheetNameIn Datatable(Destination Sheet)>" please refer to QTp help for more information. Regards, Ankesh
02-02-2012, 12:17 PM
Hi Mohit,
I have created the excel which is attached by you. and copied the same script in QTP. when i run the script it displays error as : ActiveX component can't create object: 'Excel.application' Line (1): "set objexcel = createobject("Excel.application")". Please help me on this. Regards, Shwetha
02-02-2012, 02:14 PM
shwetha, you need to install msoffice in your computer
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Error as Global Not defined while trying to retrieve value from Datatable | siddharth1609 | 0 | 965 |
09-11-2019, 02:52 PM Last Post: siddharth1609 |
|
Cannot retrieve Native property | JeL | 1 | 1,087 |
07-29-2019, 05:41 PM Last Post: JeL |
|
Want to read the data from excel and set read value in the JavaTable | rajeevk7 | 0 | 2,317 |
07-10-2017, 04:20 PM Last Post: rajeevk7 |
|
dtLocalSheet empty even though excel file contains data | cantorre | 2 | 2,434 |
05-10-2017, 12:47 PM Last Post: vidhi |
|
Reading data from excel sheet | serenediva | 1 | 9,621 |
03-03-2017, 10:07 AM Last Post: vinod123 |