Write cell in a specefic format using workbook write cell activity

Hello Friends,

I’m writing in an xlsx using a workbook write cell activity:

the result is :
image

and i want to put it under:
image

with thousand separator

Hi

Have a view on this thread for more ideas

Cheers @

1 Like

Hi,

It seems difficult to write it as number format using Workbook-WriteCell activity.

One of workarounds is to use ClosedXML which is also used UiPath.Excel.activities.

The following is a simple sample to write value and set format.

Sample20211029-1.zip (8.7 KB)

Hope this helps you.

Regards,

Thank you yoichi, did it need installation of Microsoft Office in machine s??

Hi,

No, you don’t need. ClosedXML is library which can handle OOXML format(xlsx eetc)and is used Workbook-ReadRange etc. We can access xlsx file via it without MS-Office.

Regards,

Hello,

why the sample work in a stand alone test, but when i integrate it in the workflow it did not work?

Hi,

Can you share your xaml and excel file, if possible?

Regards,

You may format cell manually. Then the robot can write cell and format is kept