Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting 'Unknown runtime error'
#1
Solved: 10 Years, 2 Months, 3 Weeks ago
Hi Guys,
I'm running below script and i'm getting "Unknown runtime error" at ObjWorkSheet.Rows(StartRow).Columns(Environment("Execute")).Value.
Code:
Environment("Execute")="1"

Set ObjExcel = CreateObject("Excel.Application")
ObjExcel.Visible = True
Set NewExcelfile = ObjExcel.Workbooks.Open("c:\temp\1.xls")
Set ResultFile= NewExcelfile
Set ObjWorkSheet=ResultFile.Worksheets("Sheet2")

For i = 13 To 323
    StartRow = i
ExecuteStatus = ObjWorkSheet.Rows(StartRow).Columns(Environment("Execute")).Value
If ExecuteStatus = "Y"  Then
      Browser("ABC").Page("XYZ").WebButton("EFG").Click
Else
      msgbox "Button not visible"
End If
Next

Can some please help me out with this issue.
Reply


Messages In This Thread
Getting 'Unknown runtime error' - by UFT_Newbie - 09-04-2014, 08:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP - Webtable().GetCellData() returns unknown symbols and spaces lokesh8008 2 4,833 05-10-2013, 03:49 AM
Last Post: sria123
  Excel Find causes syntax error at runtime m336fnr 0 3,052 02-09-2011, 08:36 PM
Last Post: m336fnr

Forum Jump:


Users browsing this thread: 1 Guest(s)