I am using the macro below to trigger the code when some values in cells on Sheet 1 changes. However, I would like to have another change of events in Sheet 2 that will drive the output (results) on Sheet 1. Would like results on Sheet 1 to reflect a change in cells on Sheet 2. The range I have specified only reflects Sheet 1. Is there anyway I can make this happen?
Code on Sheet 1:
Code on Sheet 1:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range
Set KeyCells = Range("A1:B10")
If Not Application.Intersect(KeyCells, Range(Target.Address)) Is Nothing Then
Application.EnableEvents = False
Range("B2:B10").FormulaR1C1 = "=VLOOKUP(RC[-1],array,2,FALSE)"
Range("B3:B10").value = Range("B3:B10").value
Application.EnableEvents = True
End If
End Sub