How can someone format the cell which contains a number to be text? I have my code which is:
xlsWorkSheet.Cells(x+2,x+2).style.numberformat.format="@"
xlsWorkSheet.Cells(x+2,x+2).Value = xmlrequstmsg.toString
but for some reason even the excel is produced with format Custom and as soon as I double click the cell only then it transforms to the appropriate format.
How can I fix this?