how to create percentage datatype in uipath
Percentage data type? Do you mean double data type?
If yes, then simply make the variable type to Double, if it’s not present you can browse for more types and search System.Double!
It’ll work
2 Likes
Hi @pradeep_ch
Do you mean to be able to save a value to Excel so that it shows % after opening the Excel file?
I do not think you can do it in UiPath unless you use a macro to set the format of the cell.
1 Like
hi @loginerror
yeah i have to print the values in excel sheet
thanks for ur suggestion
Thanks
Please see this example below:
ExcelSimpleMacroCellFormat.zip (8.1 KB)
The macro is quite simple here:
Sub ChangeCellFormat()
Range("A2").Style = "Percent"
End Sub
I simply recorded my actions via Excel and then browsed it afterwards by checking the Visual Basic code