Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
So I wrote this lovely Function, to be used from the worksheet. (in
the cell, you would enter = & the name of the function & parameters). It assumes (wrongly, I see now) that the cell you're typing the formula into is the active cell and pulls a bunch of other data based on that. What I realized when I tried to filldown, is that it recalculates everything based on the active cell. I need it to calculate based on the cell that the formula actually resides in, rather than the active cell. Any ideas on how I can tell my formula to reference the cell it's being called from? Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
wrote...
So I wrote this lovely Function, to be used from the worksheet. (in the cell, you would enter = & the name of the function & parameters). It assumes (wrongly, I see now) that the cell you're typing the formula into is the active cell and pulls a bunch of other data based on that. What I realized when I tried to filldown, is that it recalculates everything based on the active cell. I need it to calculate based on the cell that the formula actually resides in, rather than the active cell. Any ideas on how I can tell my formula to reference the cell it's being called from? Thanks! Replace all references to ActiveCell with Application.Caller. You may want to add logic that tests whether Application.Caller is of type Range. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you! That's exactly what I needed. I fiddled about with
variations on call and called, so I was sort of on the right track. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I parse the cell reference function? | Excel Worksheet Functions | |||
Reference function name from a different cell | Excel Discussion (Misc queries) | |||
cant seem to get a function to reference a variable cell? | Excel Programming | |||
Multiple cell reference IF function | Excel Worksheet Functions | |||
Cell Reference in Function | Excel Worksheet Functions |