Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Can I use this Syntax?
#1
Solved: 11 Years, 4 Months ago
syntax
Code:
Datatable.ImportSheet FileName.vtSrcSheet,VDstSheet
Reply
#2
Solved: 11 Years, 4 Months ago
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
Reply
#3
Solved: 11 Years, 4 Months ago
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.


Attached Files
.doc   This is the data sheet that I am importing into.doc (Size: 63.5 KB / Downloads: 76)
Reply


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,283 12-08-2011, 10:43 AM
Last Post: sshukla12
  Passing syntax check;but ignoring code cocojava 1 2,393 04-25-2011, 05:55 PM
Last Post: Saket
  Script gives syntax error in Flight reservation Application pnp19 8 9,360 11-19-2009, 10:03 AM
Last Post: Saket
  if...then syntax frustration mrmarkus48 4 2,869 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,252 08-13-2008, 09:13 PM
Last Post: Rashmi

Forum Jump:


Users browsing this thread: 1 Guest(s)