Subject: Getting Cell Of Function
Posted By: pagates Post Date: 1/7/2004 9:44:24 AM
Hello All,

I think this should be easy, but I can't seem to figure it out.

How do I get the address (or range) of the cell that is running a function?

For example, if I have a function in cell B5, how do I know that it is running in B5?

Thanks,
pagates
Reply By: patdil Reply Date: 1/9/2004 5:07:01 PM
Hello,

If you want to get a ref to the cell where the function is calling from in your function, the ref of the cell will be returned by "Application.caller".
Be careful because all actions can't be done on the cell, for example you can't change the format of cell ie color.

Hope this will help you.

Regards.
Patdil


Go to topic 8025

Return to index page 972
Return to index page 971
Return to index page 970
Return to index page 969
Return to index page 968
Return to index page 967
Return to index page 966
Return to index page 965
Return to index page 964
Return to index page 963