Can someone give me some code to set the cell of an excel spreadsheet to a number format that use a max of 2 decimal places. Or would it work better it I change the data I am putting into the cell to a proper format? Here is a sample of data that is going in. Right now its going in as a string…
col(“ADJ”).ToString() where col is a DataTable oject.
Can someone give me some code to set the cell of an excel spreadsheet
Share
I’m not sure about VB, but in C# it would be:
or
or