Excel DataTable

Hi All,

I’m preparing robot for the excel program.

So regarding about it robot have to copy data from excel sheet and paste to another excel sheet(already prepared excel) so that time I used to extract data store in to data table (using read range activity : Output table variable type set as DataTable) after that I add the data table activity and set the input and output values like below
image

image

But when I using write range activity cannot give the data table name due to string …

image

can you please help to go through this

Tharindu.

1 Like

Hi @S_D_RPA

Write range can take only datatable as input buddy
but it seems Dt_one is a string
place the datatable variable that is obtained from the read range activity that read the first excel file
Cheers @S_D_RPA

1 Like

@Palaniyappan Sorry buddy I didn’t get ur idea can u please explain again

I already used Output data table
image

Fine
Can i have a view on your xaml if possible a screenshot
Cheers @S_D_RPA

1 Like

Ok fine @Palaniyappan

please check below

image
image

1 Like

No worries
the output of the Read Range activity will be a variable of type datatable
pass that variable to Write Range activity as input for datatable property buddy
no need of output datatable and send hot key
Simple
Cheers @S_D_RPA

1 Like

@S_D_RPA

You have to pass copyData to Write Range Activity. Because it will take input as dataTable but not String.

read range for first excel and use that variable in write range for write it in other excel directly

1 Like

@Palaniyappan
Buddy thank u very much as u told i try that method its worked but have little bit problem

after execute below error showing,

image

im still not try to handle the exception…
can i know is this error can solve without try catch…?

Tharindu

@ImPratham45
thanx buddy

is it work for u?

1 Like

Mention this write range workbook activity outside the excel application scope and try buddy
Cheers @S_D_RPA

1 Like

I think its also work,

I already try @Palaniyappan 's method

your method also can try

thanks buddy

Ok
Happy Automation :blush:

1 Like

@Palaniyappan
I tried but still as previous

Tharindu

1 Like

Hee thanx broo

good day

Kindly share your xaml buddy if possible
Cheers @S_D_RPA

1 Like

wait buddy i will share.

I set the try catch activity to handle the exception…

Fine
Cheers @S_D_RPA

1 Like

Thanx broo