Hi Everyone,
I'm running the following Macro that inserts a formula into a cell based on the population of another cell on the same sheet.
I need to edit the "Target, Range" to Sheet "Import", Cells B:B and can't get it figured out.
Any Help would be appreciated.
Thank you!
I'm running the following Macro that inserts a formula into a cell based on the population of another cell on the same sheet.
I need to edit the "Target, Range" to Sheet "Import", Cells B:B and can't get it figured out.
Any Help would be appreciated.
Thank you!
Code:
Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect[COLOR=#ff0000](Target, Range("B:B")[/COLOR]) Is Nothing Then
Application.EnableEvents = False
Target.Offset(, 2).Formula = "=IFERROR(VLOOKUP(Import!B2,Import!$B:$B,1,FALSE),0)"
Application.EnableEvents = True
End If
End Sub