Word Automation and append text in the next line


#1

I have a word template having following data.
Name ENO Address Amount
User1 1234 Mumbai 100
User2 1235 Mumbai 100
User3 1236 Mumbai 200

I need to append data to the next line in this word template.
e.g. User4 1237 Mumbai 400 need to be appended.
The word file should look like this.

Name ENO Address Amount
User1 1234 Mumbai 100
User2 1235 Mumbai 100
User3 1236 Mumbai 200
User4 1237 Mumbai 400


#2

Use Word Application Scope Activity for read the word file…
And then use Append Text Activity, It is used to Add the String at the last in the word File…

Don’t forgot to Append your new line in “Name ENO Address Amount” format

Use this Xaml File…
word.xaml (6.5 KB)


#3

@Poovarasan2 I need to append at the middle i.e. where this table exists that does not mean at the last in the word file


#4

There are two option to write into word file.
1)Write text- It will over right the previous text appear
2)Append Text- It will add the new text at the last line

And Another…
Replace Text Activity- It will only replace the particular text at any position in the word file…


#5

Please find the template file.


Need to append text to the next line of the table. i.e. next to Sara B. Participant.
There are texts below the table also.


#6

One doubt,
You know the Previous Data/Last Data in the table…???


#7

if Suppose you know your last entered data
Use this,

Capture
For example, Welcome is the previous entered data, and then i want to add Hi as the new data use the above code…
Before Robot run…
Capture1
After Robot run…
Capture2
It will add at the Last data in the table…


#8

Need to perform Recording and bot should do at the run time


#9

You must store your Last entered data in some other variable for future use and then check…