How to get Row count of datapool in Rational Robot?

Showing Answers 1 - 1 of 1 Answers

yuganya17

  • Nov 20th, 2007
 

We use the following function to get the rowcount from datapool that is to get the row number of last row used.

Function getrowcount_excel(sSheetName as String)

    Dim vCount as Variant

    Set oWorkSheet          = oWorkbook.WorkSheets(sSheetName)
    vCount                  = oWorkSheet.UsedRange.Rows.Count   

    getrowcount_excel       = vCount 
End Function

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions