Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drop down value to be selected from excel_not yet resolved plz help
#5
Solved: 10 Years, 10 Months ago
Hi, Try the below script

Code:
Set ObjExcel = CreateObject("Excel.Application")
ObjExcel.Visible = TRUE
Set sworkbook = ObjExcel.Workbooks.Open ("Z:\QTPForum.xlsx")
Set sworksheet = sworkbook.worksheets("Sheet1")
state = sworkbook.Worksheets("Sheet1").Cells(1,1).Value

All_Items = Browser(" ").Page(" ").WebList(" ").GetROProperty("all items")
Each_Item = Split(All_Items,";")
For i = Lbound(Each_Item) to Ubound(Each_Item)
    val = Each_Item(i)
    If val = state Then
        Browser(" ").Page(" ").WebList(" ").Select (state)
    End If
Next
Reply


Messages In This Thread
RE: Drop down value to be selected from excel - by ssvali - 06-01-2012, 11:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Drop-Downs in excel sheet indianinworld 1 3,541 03-01-2011, 08:40 PM
Last Post: indianinworld
  Drop-down box mahadevan.swamy 5 4,134 11-03-2008, 12:47 PM
Last Post: amilar

Forum Jump:


Users browsing this thread: 1 Guest(s)