I am a newbie @ VBA. I want to use the value of a formula in the active cell to feed into another formula (a sum where the active cell sets the limit of the colum rows to be included in the sum).
Should I use Activecell.value or something else?
|
I am a newbie @ VBA. I want to use the value of a formula in the active cell to feed into another formula (a sum where the active cell sets the limit of the colum rows to be included in the sum). Should I use Activecell.value or something else? |
||||
|
|
|
Yes, if that is really what you want. However, the ActiveCell is easily, accidentally changable by the user so you might want to consider using a fixed cell reference such as:
|
|||
|
|
|
I would get the range passed to the function, as in
That way, I know exactly what cell my function is getting the data from |
|||
|
|