Have 2 items in dropdown, want warning if one selected

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have Item A and Item B in a dropdown and want a warning to pop up if Item B
is selected.
 
Hi Mover,

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> "$A$1" Then Exit Sub
If Target.Value = "b" Then
MsgBox "You picked B"
End If
End Sub

HTH
Regards,
Howard
 

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