Question

How to insert record into Excel (next empty row)

Hi All,

I implemented an automation where that automation reads data from the PDF and write those date into Excel Sheet.

When again I read the data and trying to write into same Excel file, All data are replacing with the previous one(records insert in same row) because cell value is hard code.

"I want to insert the record in the next empty row" so the previous record will not change.

I have also attached Automation. Please find the attachment and suggest where I need to change the flow and which method requires.

***Moderator Edit: Vidyaranjan | Updated Categories***

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
June 29, 2017 - 6:58am

In your automation you are always setting the same cells.  Use a counter variable to increase your row each time you write it. Here is an example:

Comments

Keep up to date on this post and subscribe to comments

Pega
June 29, 2017 - 6:58am

In your automation you are always setting the same cells.  Use a counter variable to increase your row each time you write it. Here is an example:

July 10, 2017 - 3:02pm

Hi,

If you try to use oledbquery component this can be achieved by writing insert into sql query.