There are many posts here on Stackoverflow and its related sites that center around the question of how a UDF can get ahold of the cell from which the UDF was called.
Many of the accepted answers involve the use of the Range object returned by Application.ThisCell
. Several accepted answers include language like "you can use either Application.ThisCell
or Application.Caller
."
However, the documentation for Application.ThisCell
(Application.ThisCell property (Excel)) contains this remark:
Users should not access properties or methods on the Range
object when inside the user-defined function.
What does this mean? What is the point of providing a property that returns the cell from which the UDF is called if you're not supposed to use that property within the UDF? Can anyone shed more light on this remark? And... should I be using Application.Caller
while actively avoiding using Application.ThisCell
?