Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
want to show .00 after integer number in excel spread sheet through vb.net
Posted
Comments
[no name] 22-Sep-12 9:26am    
That makes no sense at all. Integers do not have decimal points. How is it that you are showing this data from Excel in VB.NET?
[no name] 25-Sep-12 1:20am    
i want to convert the integer to a decimal and then show it on excelsheet .... but when i get something like 4.00or 3.000r anything.00 the excel sheet shows like this 1,3,or anything

1 solution

You need to use Interop and then select the relevant cells and ammend the NumberFormat accordingly.

See this; http://stackoverflow.com/questions/3097081/formatting-add-comma-2-decimal-places-to-cell-values-vb-net-excel-interop[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900