Hello,
My Excel application obtains the Excel file that is created by a trird party tool and if there is no data to be placed in cell the tool puts zero-length string in it making it impossible to use any math functions unless the string is removed. To resolve the issue I'm trying to replace all zero-length string cells with empty ones. I've tried number of approaches but have not come with acceptable/workable solution yet. One way that I made it work was to go trhough every cell in selection and check the lenght, and if the cell has zero-length string in clear it using ClearContents method, but that technique made my application painfully slow. Another approach would be to select all zero-length strings on the worksheet at once and replace them with empty cells, but I do not know how to select zero-length string cells in the document. I also thought about using find method, but, again, did not know how to input zero-length string and empty string as the parameters to the method. Any help would be highly appreciated.
Thanks,
Igor.
My Excel application obtains the Excel file that is created by a trird party tool and if there is no data to be placed in cell the tool puts zero-length string in it making it impossible to use any math functions unless the string is removed. To resolve the issue I'm trying to replace all zero-length string cells with empty ones. I've tried number of approaches but have not come with acceptable/workable solution yet. One way that I made it work was to go trhough every cell in selection and check the lenght, and if the cell has zero-length string in clear it using ClearContents method, but that technique made my application painfully slow. Another approach would be to select all zero-length strings on the worksheet at once and replace them with empty cells, but I do not know how to select zero-length string cells in the document. I also thought about using find method, but, again, did not know how to input zero-length string and empty string as the parameters to the method. Any help would be highly appreciated.
Thanks,
Igor.