Hi There,
I got a little held up on my work to autorun an vlookup function in vba.
I want to lookup a value that I created and auto populate in a cell
this is the code but it will not work, please help!
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(0, 0) = "$B$5" Then
Call lookup
End If
End Sub
Sub lookup()
On Error Resume Next
Range("B6").Value = "=VLookup(B5,pt_NL, 7, 0)"
Range("B6") = Range("B6")
End Sub
Greetings Steel010
I got a little held up on my work to autorun an vlookup function in vba.
I want to lookup a value that I created and auto populate in a cell
this is the code but it will not work, please help!
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(0, 0) = "$B$5" Then
Call lookup
End If
End Sub
Sub lookup()
On Error Resume Next
Range("B6").Value = "=VLookup(B5,pt_NL, 7, 0)"
Range("B6") = Range("B6")
End Sub
Greetings Steel010