Hi,i want when i click on a certain value to show a message box with content that comes from a vlookup.is it possible?
Hi,its perfect but i want to vlookup a and bring 3d value
i put Range("D7:F8"), 3, False) in macro but does not work
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
On Error Resume Next
Dim MyVal As String, r
If Not Intersect(Target, Range("F19:F1000")) Is Nothing Then
MyVal = WorksheetFunction.VLookup(Target.Value, Range("D7:F8"), 3, False)
On Error GoTo 0
If MyVal <> "" Then
r = MsgBox("Found value is :- " & MyVal, vbOKOnly, "Lookup")
End If
End If
End Sub
Hi,can i concacenate the target value inside VLookup(Target.Value, Range("D7:F8"), 3,
with something like range Range("E19:E1000") for example??