I have the following error for each cell: "the number in this cell is formatted as text or precedes the apostrophe" To duplicate the error: I have to save these results that come from Web services as an array of strings: Example: (3 by 3 array)
$ 402 568.03 26.2% 30.052
$ 107 719.59 7.0% 55.176
$ 81,370.35 5.3% 54.365
Let values be a string array containing a sample (string values [,]) Let r be the target range (Excel.Range r) If I do: r.Value2 = values;
I would like to know how to get rid of it. Any .net code would be great (C # or VB.NET)
Note: 1) The loop in each cell is not an option, since the array can be quite large (100, 54) or (1024, 104). I did, and this error does not, but the performance is very poor.
2) Disabling errors is not possible, because I do not have control over the client settings.
3) I notice that I use the context menu to convert to numbers, fix the problem, but this is possible for software software.
source share