I have a UDF which returns the number of "shape" objects on its parent worksheet. I want it to keep track of the number and change its output if shapes are added or deleted. Therefore I've included Application.Volatile to cause it to update if the number changes, but it does not work.
I suppose it is because adding a shape does not cause any recalculation. Does anyone have any suggestions as to how to get the desired effect in this case?
I could start changing the spreadsheet to actively keep track of the shapes, but I'd prefer to keep the code in the UDF if at all possible.
I suppose it is because adding a shape does not cause any recalculation. Does anyone have any suggestions as to how to get the desired effect in this case?
I could start changing the spreadsheet to actively keep track of the shapes, but I'd prefer to keep the code in the UDF if at all possible.