in qtp we ve datatable look like excel ,if we want to
extract data from excel which saved in my documet how can i
get that in datatable using vb script

Answer Posted / jyotikrushna mohapatra

You can do by just parameterizing it.Let's explain with an
example. You have a datatable let table.xls in C drive and
if you want to extract the data from this excel file into
your document then write in the pane

datatable.importsheet "C:\\table.xls",1,destination

Here destination means where u have to place the data

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the valid scopes of a variable in vbscript?

685


Why is it recommended to close the database connection every time after the work is completed?

596


What are the special sub-types in vbscript?

641


What are class variables?

694


Explain the arrays in vb script?

702






Explain the scope of the variables using dim, public, and private keywords respectively.

806


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

686


What are the different types of loops available in the vbscript language?

608


Out of the different type of operators, which are evaluated first and last in the vbscript language?

667


how to automatically update the sql server2005 database records when insert in vb6?

1572


Which in-built function related to an array joins substrings into one string in the vbscript language?

605


How can constants be declared in the vbscript language?

648


How to Convert Hex color code to color name in VB Script?

4032


How can you create an object in vbscript?

705


What are class events?

661