I am using excel '97. (Yes, I know it is old but for various reasons, we can't upgrade this specific machine).
Anyway, what I basically need is an "IsFunction" function or the functional equivalent. Where I pass it a reference and it will tell me if that reference contains a function. I have tried to TYPE function but it seems to always resolve the reference first. I've tried cell("Contents",a1) but again, the reference was resolved first. I've tried various combinations of direct and indirect but haven't stumbled upon the right solution.
Example below:
[tt]
A B
1 8 =IsFunction(A1) Result=0
2 =princ*5% =IsFunction(A1) Result=1
[/tt]
The current thought is somehow getting the "string" that is in the cell and testing for an equal sign. Alas, still haven't found a way to get at the underlying string instead of its resolution.
TIA,
Mark
Imagineer
Anyway, what I basically need is an "IsFunction" function or the functional equivalent. Where I pass it a reference and it will tell me if that reference contains a function. I have tried to TYPE function but it seems to always resolve the reference first. I've tried cell("Contents",a1) but again, the reference was resolved first. I've tried various combinations of direct and indirect but haven't stumbled upon the right solution.
Example below:
[tt]
A B
1 8 =IsFunction(A1) Result=0
2 =princ*5% =IsFunction(A1) Result=1
[/tt]
The current thought is somehow getting the "string" that is in the cell and testing for an equal sign. Alas, still haven't found a way to get at the underlying string instead of its resolution.
TIA,
Mark
Imagineer