If I understood your question correctly, you are getting data from the excel
spreadsheet in a for loop and you can print the last row used using the
iteration value.


On Thu, May 7, 2009 at 3:27 AM, sHiVa <krapa.ph...@gmail.com> wrote:

>
> Hi all,
>
> I need to find out the last used row number in my excel work sheet. I
> am able to find out the number of rows in a used area using this code
> snipped
>
> worksheet = workbookObject.WorkSheets("Results Sheet")
> worksheet.Select
> usedArea=worksheet.usedRange
> puts usedArea.Rows.Count
>
>
> Please any one help me to find out the last used row number.
>
> Cheers
>
> Siva Phaneendra Krapa
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to