Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parameterise the Cell coordinates for a Swf Table object
#2
Solved: 10 Years, 9 Months, 1 Week ago
Hi Maruti,

Foollowign is the code to extract values from Excel sheet. It may help you.

Code:
Dim sFileLocation

On Error Resume Next
SystemUtil.CloseProcessByName "Excel.Exe"

sFileLocation = "C:\Input.xls"
sWorksheet = "InputData"

Set xlObj = CreateObject("Excel.Application")
xlObj.Visible = True

Set xlWorkBookObj = xlObj.Workbooks.Open(sFileLocation)
Set xlWorkSheetObj = xlWorkBookObj.Worksheets(sWorksheet)

'For 2 rows
For  i  =2 To 3
    sLiabilityValue = xlWorkSheetObj.Cells(i,1)
     SwfWindow("InvestmentManager - Automation").SwfWindow("Targeter - CDO Fund").SwfTable  ("preTradesGrid").ActivateCell sLiabilityValue
Next
Reply


Messages In This Thread
RE: Parameterise the Cell coordinates for a Swf Table object - by savita.kale - 08-05-2009, 10:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to switch between Tabs in Swf Application in QTP Vijay_bt 0 2,341 10-21-2016, 08:22 PM
Last Post: Vijay_bt
  SWF grid is identified by QTP as swfobject - how to access a childitem of a cell?? raparthiqa 0 5,019 02-05-2015, 01:47 PM
Last Post: raparthiqa
  UFT - Check a checkbox inside a table cell sara- 0 5,486 02-02-2015, 08:07 PM
Last Post: sara-
  SWF Tree View problem in QTP sruthi 0 3,758 06-29-2010, 02:33 PM
Last Post: sruthi
  get color of string in cell of a java table brijesh_shivnani 2 5,777 04-10-2010, 06:23 PM
Last Post: brijesh_shivnani

Forum Jump:


Users browsing this thread: 1 Guest(s)