c# - identify if excel cell has more than 2 decimal places -


i have multiple excel files, need create small tool(c#) need create log file tell, excel file , cell has more 2 decimal places in it. possible highlight on excel cell has more 2 decimal places

yes it's possible, tried iterate through active(cell has value) cells

 microsoft.office.interop.excel.application excel = new microsoft.office.interop.excel.application();         workbook wb = excel.workbooks.open(path);         worksheet excelsheet = wb.activesheet;         var test = excelsheet.cells[x, y].value.tostring();         int chk = getdecimalcount(decimal.parse(test)); 

tool ready

enter image description here


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -