Dear All,
I have been having several problems with a complex spreadsheet I am creating, and have located the source of my problems. Namely, the problems seem to stem from conflicts between my udf's and worksheet change event handlers. Namely, I have created an input page where the user selects several options from drop down lists (made using validation). I have created a worksheet change event listener that listens for any changes to these cells. When a change is made, the event handler calls a corresponding sub that manipulates other excel sheets (performs functions such as hiding, adding deleting rows and columns, etc.). However, my problem occurs when I use these same input cells as inputs to my udf's (so that certain cells automatically change their values depending on the user option). This seems to create a conflict in excel whereby as soon as the change is made, the udf's are updated, but the subs called by the event handler arent performed correctly. Udf's seem to take the focus. Does anyone perhaps know of any way around this? perhaps telling excel to first run the subs, then allow the udf's to update? or vice-versa?
Many thanks!
DenoBest
I have been having several problems with a complex spreadsheet I am creating, and have located the source of my problems. Namely, the problems seem to stem from conflicts between my udf's and worksheet change event handlers. Namely, I have created an input page where the user selects several options from drop down lists (made using validation). I have created a worksheet change event listener that listens for any changes to these cells. When a change is made, the event handler calls a corresponding sub that manipulates other excel sheets (performs functions such as hiding, adding deleting rows and columns, etc.). However, my problem occurs when I use these same input cells as inputs to my udf's (so that certain cells automatically change their values depending on the user option). This seems to create a conflict in excel whereby as soon as the change is made, the udf's are updated, but the subs called by the event handler arent performed correctly. Udf's seem to take the focus. Does anyone perhaps know of any way around this? perhaps telling excel to first run the subs, then allow the udf's to update? or vice-versa?
Many thanks!
DenoBest