StuckInTheMiddle
Programmer
Hi All,
I have a User Defined Function setup in VBA and would like to know how I can determine the cell/sheet that called my function.
The function is nonvolatile and is used in several places throughout my workbook and works great (well works good anyway), but I'd like to be able to determine which cell and sheet at any one time I'm calculating for.
Also, is it possible to 'Cancel' and exit the function without returning a new value to the worksheet?
A,
"If you can stay calm, while all around you is chaos...then you probably haven't completely understood the seriousness of the situation.
I have a User Defined Function setup in VBA and would like to know how I can determine the cell/sheet that called my function.
The function is nonvolatile and is used in several places throughout my workbook and works great (well works good anyway), but I'd like to be able to determine which cell and sheet at any one time I'm calculating for.
Also, is it possible to 'Cancel' and exit the function without returning a new value to the worksheet?
A,
"If you can stay calm, while all around you is chaos...then you probably haven't completely understood the seriousness of the situation.