A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi Lee,
What you intend to do can't be done directly with excel tabs or functions. Thus, you may need a VBA code;
-Press ALT + F11 to open the Visual Basic for Applications editor.
-In the worksheet's code module (where your DDLs are located), paste the following VBA code:
Private Sub Worksheet_Change(ByVal Target As Range) If Not Application.Intersect(Target, Range("A1")) Is Nothing Then Range("B1"). ClearContents End If End Sub
This VBA code is an event handler that triggers when there is a change in the worksheet. It checks if the change occurred in cell A1 (Main DDL cell) and if so, it clears the content of cell B1 (Secondary DDL cell).
-Close the VBA editor to save your changes.
Now, whenever you change the value in the Main DDL (cell A1), the content of the Secondary DDL (cell B1) will be automatically cleared, ensuring that the old value is removed.
I hope this helps.
Regards, Sola