My company created an Add-In for Excel that consist of several functions that connect to a SQL Server DB and return financial data. In order to send these XLS files to others that do not have the Add-In the cells formula has to be replaced with the result value of that formula removing these custom functions from the worksheets. I have the code to make this all happen however I have hit an issue. Currently I use the VBA Extensability objects to create a csv string of these custom functions from the add-in. I then iterate through every cell that has a functtion and extract from the function all of the characters up to the first ‘(‘. These first n number of characters identify the function name. I then compare this to the csv string to see if there is a match. This works fine so long as the cell has either only 1 function of the first function in the cell if one of these custom functions.
What I am looking for is a way to take the entire function from a cell and compare it to the csv string for a possible match without having to check each value in the csv string 1 at a time via a loop.
Suggestions?
Thanks
Ed