02-08-2011, 09:25 AM
Hi All,
I'm also struggling to import an excel file to Datatable. I have an excel by name Sample.xls and my script is as below
I wrote this in expert view of QTP and ran it. When I run it, I'm seeing the Global sheet of DataTable getting populated (I see the values copied to cell quickly), but at the end of the run, there are no values in the DataTable. I also see 5 iterations of the execution, in the HP results view, where as I ran it only once.
Can somebody throw some light on this ?
I'm also struggling to import an excel file to Datatable. I have an excel by name Sample.xls and my script is as below
Code:
Dim qt
Set qt = createobject("QuickTest.Application")
qt.Launch
qt.Visible=True
DataTable.ImportSheet "C:/Users/Desktop/Sample.xls",1,"Global"
Can somebody throw some light on this ?