Write cell last row excel

I have an excel and I want to write a range after the last cell with data, I just don’t know how to do it, someone will have some example to help me

That is my excel where I want to write in this case in column “C” I want to write after the last cell with data, as it will increase the data I will always have to get the last cell and then write

1 Like

hey @Ivan_torres_oliva
you can use the “append range” activity, or get the last row from you data tabla ever before write using the YourDataVariable.Rows.Count. and after having the last cell then write.
Regards!

I get this error when I try what you mention could you help me?

1 Like

@Ivan_torres_oliva

Here, you are assigning DataTable rows count to DataTable variable and that’s why you are getting that error.

     Int rowCount = PLANTILLA.Rows.Count

I could correct that but I can’t write after the last cell with data

Main.xaml (6.8 KB)

this is my workflow

You should use “filas” variable into write range
for last cell you should take
(PLANTILLA.Rows.Count+1).ToString

"C" + filas

I tried what you mentioned but I get the following error in read range

Main.xaml (9.1 KB)

You want to read that excel fro C1?
give that cell no not only C

OCRtest2.xaml (12.6 KB) OCRtest2.xlsx (7.1 KB)

I have problem too. I have attached to easiest understand.
Please suggest me.

Hi @Ivan_torres_oliva in the read range activity remove “C” and keep it blank.

1 Like

i tried to remove it but not work.

1 Like

will you share the sample of your workflow and files

1 Like

sure above i have shared alredy

In read range
Please give range like, “B1”