Hi,
I am trying to write some code to run through a workbook and identify dead ends i.e. cells with no dependents. I can isolate the cells I need to check and tried to count dependent cells to see which had none. My code to do this is:
This creates "runtime error 1004: no cells found" when a cell with no dependents is found. I have tried using ISERROR and ISNUMBER and a few other things to either trap this error or turn it into something useful. I cannot do this and would be pleased to get some help.
It seems that whatever is returned from my expression is not an error code or a null or a number.
Thanks in advance
Adrian
I am trying to write some code to run through a workbook and identify dead ends i.e. cells with no dependents. I can isolate the cells I need to check and tried to count dependent cells to see which had none. My code to do this is:
Code:
If Cell.Dependents.Count < 1 Then
It seems that whatever is returned from my expression is not an error code or a null or a number.
Thanks in advance
Adrian


Comment