Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27189

[RESOLVED] Anybody know their Excel Format Strings?

$
0
0
I'm using a third party API for the creation of Excel Spreadsheets from VB.NET.

I can set number formats like this:

Code:

Sub CellStyle(ByVal ws As ExcelWorksheet)

  ws.Cells(row, 1).Value = ".Style.NumberFormat"
  ws.Cells(row, 2).Value = 1234
  ws.Cells(row, 2).Style.NumberFormat = "#.##0,00"

End Sub

But I have no clue what the Excel Format Strings are and haven't found a good list. trying to format cells so that negative numbers look like:

(1,200.00)

Anybody happen to know that one off hand? Thanks!

Viewing all articles
Browse latest Browse all 27189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>