OK. I'm not sure if this is easily achievable, but I'm going to try.
I use this sub to execute some macros if the cell is changed:
Private Sub Worksheet_Calculate() Dim target As Range Set target = Range("b4") If Not Intersect(target, Range("b4")) Is Nothing Then Call init End If End Sub
This works great, but I have a problem.
Cell B4 , as indicated in the above cell change element, has its own value defined by the named range, which is dynamic, and contains a list of values ββon another sheet. I use a data validation tool to make a B4 drop-down list with the contents of a specified range.
I have another macro whose purpose is to update this list. What he does is clear the current list, query the database, and display a range of values ββin the range. The problem is that when this macro runs, it causes a change in the value of B4 (since B4 refers to values ββin the range). This, in turn, leads to the fact that the macro "cell change" triggers errors at startup.
Is there a way to prevent the "change cell" macro from executing while I am updating the list it references?
Hope this question makes sense.
source share