2,894 questions
Hi @gilberto ,
Suppose you are using the Microsoft.Office.Interop.Excel library to operate Excel.
You can refer to the following code to set the NumberFormat.
Dim cell As Range = excelWorksheet.Range("A1")
cell.Value = 1234.5678
cell.NumberFormat = "$#,##0.00"
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.