This code should be displaying a VB drop-down box but it is NOT. I don't know why. Thanks in advance.
Private Sub ComboBox1_Change()
Dim EmailAddress As String
Dim AddressCell As String
Dim DataRange As String
AddressCell = "N4"
DataRange = "T4:U21"
EmailAddress = WorksheetFunction.VLookup(ActiveSheet.Range(ComboBox1.LinkedCell), ActiveSheet.Range(DataRange), 2, False)
ActiveSheet.Range(AddressCell).Select
ActiveCell.Value = EmailAddress
If EmailAddress <> "" Then
With ActiveSheet
.Hyperlinks.Add.Range (AddressCell), "mailto:" & EmailAddress
End With
End If
End Sub "The reward of one duty done is the power to fulfill another"
<%
Jr Clown
%>
Private Sub ComboBox1_Change()
Dim EmailAddress As String
Dim AddressCell As String
Dim DataRange As String
AddressCell = "N4"
DataRange = "T4:U21"
EmailAddress = WorksheetFunction.VLookup(ActiveSheet.Range(ComboBox1.LinkedCell), ActiveSheet.Range(DataRange), 2, False)
ActiveSheet.Range(AddressCell).Select
ActiveCell.Value = EmailAddress
If EmailAddress <> "" Then
With ActiveSheet
.Hyperlinks.Add.Range (AddressCell), "mailto:" & EmailAddress
End With
End If
End Sub "The reward of one duty done is the power to fulfill another"
<%
Jr Clown
%>