PERFORMANCE - looping over cells - suppress “number stored as text” warning in Excel VSTO with C#
问题 I am populating a ListObject with data from a database, and am pre-formatting ListColumns which come from VarChar (& similar) as Text before inserting the data. This works well, but some affected cells now are showing the 'Number Stored As Text' error. The answer https://stackoverflow.com/a/21869098/1281429 suppresses the error correctly, but requires looping through all cells (as it is not possible to perform the action on a range). Unfortunately for large ranges this is unacceptably slow .