I have created one parametrized test case. After iterating through all rows, QTP again invokes the browser and start iterating from row one. I don't know how to exactly handle this situation. My code is like this
Call Login(username, password)
NCount = datatable.GetRowCount
For i =1 to NCount
-- and at the end of the script
If datatable.GetSheet(1).SetNextRow = null Then
datatable.ExportSheet "C:\Program Files\ab\QuickTest Professional\Tests\Tutorial\Export\xyz.xls","Actio n1"
Would appreciate your help.