Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code won't stop looping through imported spreadsheet
#3
Solved: 12 Years, 10 Months, 3 Weeks ago
Thank you for your reply. I changed the code to this:

Code:
DataTable.Import "C:\Temp\CreateVendor2.xls"
r = DataTable.GetRowCount
Do While r >= 1

' lines of code

DataTable.SetNextRow
r = r-1
Loop

It seems to do the same thing. After the final row of data (row 3) it goes all the way to the first line of code (importing the spreadsheet) and starts over. Am I supposed to be putting this in a subroutine? I am unclear on what the code should look like. Thank you in advance for your help.

Mike
Reply


Messages In This Thread
RE: Code won't stop looping through imported spreadsheet - by Mike72688 - 01-08-2009, 01:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to use looping statement dmvelic083185 1 1,643 09-26-2017, 08:46 PM
Last Post: Ankur
  Execute button of putton won't be clicke automaticly in UFT (VB) MarUFT 3 3,137 11-21-2016, 04:22 PM
Last Post: Ankur
  Invalid File error importing a spreadsheet but only on a VM msacks 1 3,151 10-19-2014, 09:04 PM
Last Post: supputuri
  Perform some functions whenever QTP Stop button is pressed smartkarthi 2 3,694 08-22-2013, 11:43 AM
Last Post: smartkarthi
  How to make QTP take the value of a formula in a spreadsheet? utestqa 1 3,575 07-06-2013, 04:13 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)