I want to import the sheet from the Excel to the Datatable
using VB Script. I used the Syntax
as 'Datatable.ImportSheet "Filename","SourceSheet","Destinat
ionSheet"
Ex:
Datatable.ImportSheet "D:\Data1.xls","Sheet1","Global"
Qtp producing run time error,How I can solve the problem

Answer Posted / swayam.nayak

Instead of writing Datatable.ImportSheet "D:Data1.xls","Sheet1","Global" this

Try to put this code

"D:Data1.xls","Sheet1","1"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

534


Explain the arrays in vb script?

589


What is the purpose of folders object of scripting.filesystemobject class in vbscript?

871


write a program to display configuration of a local system with the help of vb script.

1688


Explain about constants in vb script?

575






How will you get the largest subscript of an array in vbscript?

605


Mention how to access array data?

513


Explain about scrrun.dll?

536


What is the scope of a constant declared using public?

562


how to set one column as primary key in QTP and fetch values accordingly

1821


How will you get the natural logarithm of the given number in vbscript?

605


Explain about the support of asp for vb script functionality?

529


Mention the environments where vbscript could be run?

662


Mention how you can call vbscript functions?

585


Explain about .wsf files?

622