autofill

  • Thread starter Thread starter Worzel Gummidge
  • Start date Start date
W

Worzel Gummidge

In column I, I have a dropdown menu listing either "yes" or "no".

What I would like to do is, when any other cell within that row contains
data, for the cell in colum I to change automatically to "no" until user
changes it to "yes"

So for example, if I enter any data into cells A1 or B1 or C1 etc etc, then
cell I1 will automatically fill with the word "no"

Any suggestions?
 
You can do this with a worksheet_change event.Right click sheet tab>view
code>left window select worksheet>right window>select worksheet_change.
Write code
 
Any ideas on what the code would be?

Don Guillett said:
You can do this with a worksheet_change event.Right click sheet tab>view
code>left window select worksheet>right window>select worksheet_change.
Write code
 
try

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column > 3 Then Exit Sub
Cells(Target.Row, "i") = "No"
End Sub
or
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column > 3 Then Exit Sub
If UCase(Cells(Target.Row, "i")) <> "YES" Then _
Cells(Target.Row, "i") = "No"
End Sub
 
Tried both Don but no joy sorry.

Thanks anyway - will keep on digging for a code :)
 
What I sent you DOES work properly. It was tested. Did you place in the
sheet module? What did you do?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top