M
margolis22
I have a drop down box with several options. I want a message box t
popup when the user clicks on an option from drop down list.
Here is my current code (which is way off)
Private Sub OnClick(ByVal Target As Range)
Dim curr As String
curr = Range("Index!F1").String
If curr = 2 Then
MsgBox ("Currency Selected ==> Dollars - U.S.A.")
Else
If curr = 3 Then
MsgBox ("Currency Selected ==> Francs - France. The rate factor is 1.2
From January 26, 2004")
Else
If curr = 4 Then
MsgBox ("Currency Selected ==> Canadian - Canada. The rate factor i
1.20 From January 26, 2004")
Else
If curr = 5 Then
MsgBox ("Currency Selected ==> Pesos - Mexico. The rate factor is 1.2
From January 26, 2004")
End If
End If
End If
End If
End Su
popup when the user clicks on an option from drop down list.
Here is my current code (which is way off)
Private Sub OnClick(ByVal Target As Range)
Dim curr As String
curr = Range("Index!F1").String
If curr = 2 Then
MsgBox ("Currency Selected ==> Dollars - U.S.A.")
Else
If curr = 3 Then
MsgBox ("Currency Selected ==> Francs - France. The rate factor is 1.2
From January 26, 2004")
Else
If curr = 4 Then
MsgBox ("Currency Selected ==> Canadian - Canada. The rate factor i
1.20 From January 26, 2004")
Else
If curr = 5 Then
MsgBox ("Currency Selected ==> Pesos - Mexico. The rate factor is 1.2
From January 26, 2004")
End If
End If
End If
End If
End Su