02-24-2011, 06:45 AM
syntax
Code:
Datatable.ImportSheet FileName.vtSrcSheet,VDstSheet
How Can I use this Syntax?
|
02-24-2011, 06:45 AM
syntax
Code: Datatable.ImportSheet FileName.vtSrcSheet,VDstSheet
02-24-2011, 11:04 AM
Hi,
Here is an example to understand the above syntax: DataTable.ImportSheet "C:\test.xls",1,"Action1" "c:\test.xls" - Path of the source excel sheet from which you intend to import data from 1 - First data sheet in test.xls file "Action1" - Name of the data sheet in the QTP data table. Thanks, Prasad
02-24-2011, 10:54 PM
Thanks for getting back to me. One more thing to make things clear, I need to import the data from an excel sheet, into the Global sheet, and save it with the TC. However, when I run that script, it goes into the Global sheet, then Gone after the run is finished. Attached is a DOC with screen shots.
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Correct syntax for read and load global datatable from Resources tab in QC to QTP | hari1024 | 1 | 5,278 |
12-08-2011, 10:43 AM Last Post: sshukla12 |
|
Passing syntax check;but ignoring code | cocojava | 1 | 2,381 |
04-25-2011, 05:55 PM Last Post: Saket |
|
Script gives syntax error in Flight reservation Application | pnp19 | 8 | 9,332 |
11-19-2009, 10:03 AM Last Post: Saket |
|
if...then syntax frustration | mrmarkus48 | 4 | 2,846 |
04-07-2009, 11:44 PM Last Post: mrmarkus48 |
|
Function works fine in QTP but when i put it in vbs file it throws syntax error | Rashmi | 0 | 2,250 |
08-13-2008, 09:13 PM Last Post: Rashmi |