Save excel file with date and time

I have task that I need to save the excel in
Current date and time

But it throwing this error

Write Range Workbook: The filename, directory name, or volume label syntax is incorrect. : ‘C:\Users\Documents\UiPath\task5\acme09\23\2023 14:10:37.xlsx’

I tried but not getting can any one help me to solve this

@Sagar_Sukla

how you have mention syntax in the write range work book activity

I have given like this = “acme”+now.tostring+“.xlsx”

You need to give the condition like this then only it work

output : -

@Sagar_Sukla

I have not seen anything can you share the condition or xaml easy for me

Yeah sorry i have forgotten to share the condition

Xaml : - SaveWithDate&Time.zip (1.5 KB

you can use this condition in the write range workbook activity

“acme”+Now.ToString(“yyyy_MM_dd HH_mm_ss”)+“.xlsx”

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.