Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting problems while accessing data from Excel Sheet
#1
Solved: 10 Years, 9 Months, 2 Weeks ago Toungue 
Hi,
This is Narasimha, new to this group.
I am trying to access the data from two excel files in a single script by using two For loops. Main Excel sheet contains 6 rows and sub excel sheet contains only one row. (Here based on if condition for Main excel sheet each row in Main excel sheet should go to different sub excel sheets which contains only one row)

Code:
Main Excel Sheet(6 rows)
For Loop for Main Excel Sheet
   If Header is Yes in Main sheet
       Sub Excel sheet(1 row)
       For Loop for Sub Excel Sheet
       Next
   End If
Next
While running it is running fine for first row but Main sheet contains 6 rows thatswhy it is searching for 6 rows in sub excel sheet and throwing error messages.(I have also changed to one iteration only under Run tab).

Cany any one please help me in this.

Thanks and Regards
Narasimha
Reply


Messages In This Thread
Getting problems while accessing data from Excel Sheet - by SNR - 04-29-2009, 06:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with Text color recognition Treirk 0 984 06-17-2019, 12:19 PM
Last Post: Treirk
  Want to read the data from excel and set read value in the JavaTable rajeevk7 0 2,173 07-10-2017, 04:20 PM
Last Post: rajeevk7
  dtLocalSheet empty even though excel file contains data cantorre 2 2,237 05-10-2017, 12:47 PM
Last Post: vidhi
  Reading data from excel sheet serenediva 1 8,915 03-03-2017, 10:07 AM
Last Post: vinod123
Question QTP not performing iterations based on local data sheet Breaker 18 55,329 01-25-2016, 04:32 PM
Last Post: arunshuklainbox

Forum Jump:


Users browsing this thread: 1 Guest(s)