.GetCurrentRow will get the row number from the datatable, since the number can never be blank it won't stop looping. I would suggest you to take .GetRowCount first. This will give you the total number of active rows in the longest column of your sheet. Then loop through row count value.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course

