I have a spreadsheet that contains many function calls to query data. I am writing a function (in VBA) to check if any of the cells contains the error value "#VALUE", etc.
At the moment, I repeat line by line, column by column, and first check if the cell contains a formula, then, if so, checking instr for "#VALUE", "# N / A", etc.
However, I was wondering if this would be a faster simulation of clicking on an entire column in excel, and then "ctrl + f" for the value ... in VBA.
What would be the most efficient way? I am checking a sheet of 27 columns x 1200 row size.
EDIT Ive just realized that there are some cells that have "# N / A", and that is because they do not contain a specific formula. I only need to search in cells that contain a specific formula .... is this possible?
EDIT2 I really need to write a macro that returns resutls, just like "find everything." I used find, and I can get a boolean, but find all does not write VBA code ....
source
share