View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
John John is offline
external usenet poster
 
Posts: 2,069
Default Clear value if cell changes

try somthing this:

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Address = "$C$5" Then

Range("F7,F5,C7").ClearContents

ElseIf Target.Address = "$C$8" Then

Range("F8").ClearContents

End If

End Sub

--
jb


"Kashyap" wrote:

Hi, I have in cell drop down validation in around 8 cells and all are inter
related..

So, when the value of C5 changes, I need the contents in F5, F7 & C7 to the
cleared.. and when value of when C8 changes, contents in F8 to the cleared..
Healp pls

All the above cell have in-cell drop down validation.