I’m working on an interactive Excel chart where all you have to do is mouse over selected cells to update the chart using a UDF. This works fine, however the chart data does not always come on consecutive lines and I would like to use the Excel filter to hide those rows, removing them from the chart.
I have the VBA code to hide the rows and I’ve tried:
- inserting the VBA code into the UDF
- calling a separate macro from the UDF
- creating a worksheet change event (based on the cell the UDF actually changes), but it doesn't trigger when the UDF changes the value.
Is there a way that that a UDF can trigger either a macro or worksheet change event?