Reset Cell Values Based on Change to Various Cells

Griffmik

New Member
Joined
Oct 4, 2018
Messages
2
Good evening. I have a challenging problem I was hoping to get help with. I have reviewed other posts and found a solution that allows for clearing a range of cells based on a change, but can't find a way to clear different ranges based on different cells changing.

I have dependent drop-downs in Cells C2:C5.

I want the cells in C3:C5 to reset to ‘Select’ when C2 is changed
I want the cells in C4:C5 to reset to ‘Select’ when C3 is changed
I want the cell in C5 to reset to ‘Select’ when C4 is changed

I’m using the following statement that resets C3:C5 when C2 is changed, but cannot get the others to work. Any help is greatly appreciated. Thank you!

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("C2")) Is Nothing Then
Range("C3:C5").Value = "Select"
End If
End Sub
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi. Try this instead:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
 If Intersect(Target, [C2:C4]) Is Nothing Then Exit Sub
 Select Case Target.Address(0, 0)
  Case "C2": [C3:C5] = "Select"
  Case "C3": [C4:C5] = "Select"
  Case "C4": [C5] = "Select"
 End Select
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top