Hard to interpret what you mean. How does D1 gets its "contents" that must be "deleted" when A1="y"? By a formula or what?
Aladin
D1
Hi Mark
Most definately a macro.
Right click on your sheet name tab, select "View Code" and paste in this code.
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A1") = "y" Then Range("D1").ClearContents
End Sub
Push Alt+Q. Save
Dave
OzGrid Business Applications
can this be done with a formula or does it require a macro?
Dave: Aren't you worried about wiping out what already is in D1? What happens if A1 changes from "y" to something else?
Aladin
Aladin
>Aren't you worried about wiping out what already is in D1?
I thought that was what Mark wanted to do!
>What happens if A1 changes from "y" to something else?
Nothing!
Dave
OzGrid Business Applications