I’m hoping someone can help me with what I hope is a simple VBA code to clear/blank the contents of a cell if the input from a (“Yes “or “No”) drop down list = “No”.
I have an Excel Table with (“Yes” or “No”) drop down lists in Cell Ranges J2:J50. I have a pop up calendar (to enter the desired dates) in Cell Ranges K2:K50. I would like if the dates entered into Cells K2:K50 are automatically cleared or blanked when the drop down lists (in Cells J2:J50) option “No” is chosen.
I’ve tried various Nested If() statements in the validation Box and directly in the cell in the worksheet with No success. Finally after some investigation it appears you cannot delete a value in a cell with a formula in another cell.
It seems the answer lies in VBA. Unfortunately I have little knowledge of coding, so I’m hoping someone can provide the necessary directions and codes that I can copy and paste directly into my worksheet/module.
My thanks in advance for any help.
I have an Excel Table with (“Yes” or “No”) drop down lists in Cell Ranges J2:J50. I have a pop up calendar (to enter the desired dates) in Cell Ranges K2:K50. I would like if the dates entered into Cells K2:K50 are automatically cleared or blanked when the drop down lists (in Cells J2:J50) option “No” is chosen.
I’ve tried various Nested If() statements in the validation Box and directly in the cell in the worksheet with No success. Finally after some investigation it appears you cannot delete a value in a cell with a formula in another cell.
It seems the answer lies in VBA. Unfortunately I have little knowledge of coding, so I’m hoping someone can provide the necessary directions and codes that I can copy and paste directly into my worksheet/module.
My thanks in advance for any help.