Forum Discussion

hskim's avatar
hskim
Contributor
9 years ago

How can I control the Input position in Excel?

Hi

I use two colum in Excel.

Colum A is inputted from web data.

Colum B is inputted by tester.

 

When executing testcase, the web data is inputted to Excel(Column A) and then the values in Column A and B are comparied in Testcomplete.

But I input the test data to Column B, and then testcase executs...result is the following.

result_data.png

 

I think, the issue script is the following,

------------------------

var rowCount = sheet.UsedRange.Rows.Count+1;

------------------------

 

But I don't know.

 

Please let me know how can I that.

Thanks.

6 Replies

    • djadhav's avatar
      djadhav
      Regular Contributor

      If you are using rowCount for output row number then

      rowCount = 1 should do it for you. From there you can keep incrementing it.

       

      In case that is not true, please paste some code where you are writing the values to Excel.

      • hskim's avatar
        hskim
        Contributor

        I tried to fix the value like 'rowCount = 1'.

        And then the result is written at that just one time.

        After that 2rd result is written same position the 1th result is gone.

         

        I want to writ the 1th result from 1 position and 2rd result must be written the bottom.