All Forums >> [Scripting] >> Post a VBScript >> code to read data from excel or spread sheet Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Using test complete I have recorded vb script.While recording for a text fields the user needs to input the data via keyboard. instead of inputing data via keyboard planning to read it from excelsheet. how to read the input data from the excel sheet(which as 1 column and n rows) or Spread sheet. ie, in the below code "iteration1" data is the keyboard input, instead of that it should be read from the excel sheet. Call w1.WinFormsObject("txtTaskName").Keys("iteration1") On iterating the script for 10 times, each time the script should read 1 row and should increment. its for the fist iteration 1row should be read and for the 2nd iteration 2nd row should be read and so on.