ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   thiscell and udf (https://www.excelbanter.com/excel-programming/437314-thiscell-udf.html)

cate

thiscell and udf
 
Finally found my mystery problem; cannot use thiscell in a udf. To
discover the row in which the udf is called, must you pass in a row
number as a udf parameter? I wanted to use cell("row"), but it has
two specs. If I define the ref as the cell itself, that's not good,
right - "circular"? If I do not include the reference, cell() returns
the last changed cell... and I'm not sure what that is.

The only thing about entering a number is it doesn't adjust as the
cell functions are copied from cell to cell.

Thanks.

cate

thiscell and udf
 
On Dec 11, 7:11*am, cate wrote:
Finally found my mystery problem; cannot use thiscell in a udf. * To
discover the row in which the udf is called, must you pass in a row
number as a udf parameter? *I wanted to use cell("row"), but it has
two specs. *If I define the ref as the cell itself, that's not good,
right - "circular"? *If I do not include the reference, cell() returns
the last changed cell... and I'm not sure what that is.

The only thing about entering a number is it doesn't adjust as the
cell functions are copied from cell to cell.

Thanks.


never mind...
Application.Caller.Address


All times are GMT +1. The time now is 12:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com