you can give like this , if you want only the part to be itration before that part you can give
'Import type Data File Book1.xls(here book1 is the excel sheet thruwhich you want to sent the data, and sheet3 is the tab in the excel sheet for that)
Data_Sheet = PathFinder.Locate("Book1.xls")
DataTable.ImportSheet Data_Sheet,"Sheet3" ,1
and after this you just give
For x=1 to 5 (this is for 5 iteration)
'Set the Current Index to 1
Browser("Mitchell Workcenter -").Page("Mitchell Workcenter -_3").WebEdit("txtCompany").Set DataTable("Orgid",dtGlobalSheet)
'(here the Orgid is the title of the tab sheet3)
whole statement what ever you want to write and then
[ QUOTE ]
Only some part of the script need to be in iteration which in need accepts parameterized data from the data table.Can anyone help me how to enhance the script for the above scenario.
[/ QUOTE ]
Assuming you are using QTP, do the tutorial that comes with QTP and then review the online Help for this basic type of functionality. This forum is not intended to provide step by step guidance to learn these most basic functions of this tool.
And, for this particular topic there are tons of postings discussing the use of Data Sheets to provide input to data drive a test script. In the future SEARCH first and POST questions second.