Hello all,
It has been about six months since I have had to use VBA and my brain is numb. I am trying to call up a particular UserForm based on the Data Validation choice that is made in a particular Cell. I can't seem to think this through.
The Cell is C14. When you land on it, you get a Data Validation drop down menu with three choices ( lets call them Larry, Curly and Moe ). If the user chooses "Larry", I want UserForm1 to pop up, "Curly" results in UserForm2, and a choice of "Moe" would result in UserForm3. So far, I have this:
Sub GetStooges()
If Range("C14").Value = Larry Then
UserForm1.Show
ElseIf Range("C14").Value = Curly Then
UserForm2.Show
ElseIf Range("C14").Value = Moe Then
UserForm3.Show
End If
End Sub
Any suggestions?
Thank you.
Marley
It has been about six months since I have had to use VBA and my brain is numb. I am trying to call up a particular UserForm based on the Data Validation choice that is made in a particular Cell. I can't seem to think this through.
The Cell is C14. When you land on it, you get a Data Validation drop down menu with three choices ( lets call them Larry, Curly and Moe ). If the user chooses "Larry", I want UserForm1 to pop up, "Curly" results in UserForm2, and a choice of "Moe" would result in UserForm3. So far, I have this:
Sub GetStooges()
If Range("C14").Value = Larry Then
UserForm1.Show
ElseIf Range("C14").Value = Curly Then
UserForm2.Show
ElseIf Range("C14").Value = Moe Then
UserForm3.Show
End If
End Sub
Any suggestions?
Thank you.
Marley