check the For loop syntax in the QTP help
you'll also get examples on how to use it
"I realize it's an error, but no one is going to try to do that!"
From "Top 10 Stupid Comments from Developers".
Read up on the various loops: For, Do, While
can we add for loop like in java in qtp script
i wnat to do iteration for only some part of script
You can refer this link for VB script
With Best Regards