For Excel: I need a formula or code so that when cell A changes, cell B and C reset and are erased?
A is a drop down list and B and C are also drop down lists that are dependent on what A does. So if I change the selection in A- B and C need to reset and be blank fields.
For Example. A has a drop down lists of car brands: Toyota, Ford, Mercedes
B has a drop down lists of models of Toyotas, Fords, and Mercedes
and then C has a list of features for each of these cars
So I originally select Toyota, Camry, and a feature.
But then I change that to say Mercedes- I don't want column B to say Camry still.
Thank you!
You don't indicate specific cell references, such as A1, B1, and C1. So, I'm inferring that your letters do refer to columns A.
Assuming your three cells are, in fact, A1, B1, and C1, here is a Worksheet_Change event handler that will do as you wish.
Copy this event handler to the clipboard (highlight the entire event handler, right click inside the highlighted area, and 'Copy'):
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(0, 0) = "A1" Then
Range("B1:C1").Value = ""
End If
End Sub
Select the worksheet containing your dependent drop downs and right click the sheet tab at the bottom.
Select 'View Code'.
Paste the event handler into the white editing area to the right (right click inside the area and 'Paste').
Close the VBE (red button - top right).
Make a selection in A1 and B1:C1 will clear contents.
- Will the transmission need replaced if he changes the motor? My dad has a 1964 Ford Galaxie 500. Right now it has a 351W motor. He wants a 390 (original motor to the car). If he was to change the motor, would the transmission need replaced too? The rebuilt transmission has less then 20k miles on it since it was rebuilt.
- Will Chevrolet enter to Formula 1 someday? In 2000s F1 were more engine manufacturers such as Ferrari, Mercedes-Benz, Cosworth-Ford, Toyota, BMW, Honda, Peugeot, Petronas, Renault, Mecachrome and Supertec just start in 2010 F1 were engine manufacturer crisis and reduced to 4 such as Ferrari, Mercedes-Benz, Cosworth and Renault. 2015 Honda makes return with McLaren Can Chevy enter Formula 1 someday?
- How to reset factory anti theft? I drove my 2000 ford ranger, parked it and did some errands. I came back put the key in and tried to start it. The theft light on dash blinking real fast. Truck has power but won't turn over. I turn the key and nothing. How do i reset the anti theft?
- Is Ford returning to Formula 1 is 2017? I'm asking this because in Nascar Haas is switching to Ford in 2017 and if you know Nascar, Haas has always been a Chevy team and honestly it is quite surprising they would switch manufactures… Unless their F1 team is possibly going to run a Ford/Cosworth Engine in 2017. Also add that Ford is leaving V8 Supercars maybe that is another sign they are putting their eggs in a f1 return.