I created this macro by using recorder and modified it alittle bit, but the update is not working automatically when deleting a row from worksheet2 to update worksheet1. All I want it to see when #REF appear in one cell then update the remaining cells. What am I doing wrong? TIA.
Sub Worksheet_Change(ByVal Target As Range)
Sheets("Efficiency").Select
If Range("B3") = "=+'M32#1'!#REF!" Then
Range("B3").Select
ActiveCell.Formula = "=+'M32#1'!A2"
Range("C3").Select
ActiveCell.Formula = "=+'M32#1'!B2"
Range("D3").Select
ActiveCell.Formula = "=+'M32#1'!M2"
Range("E3").Select
ActiveCell.Formula = "=+'M32#1'!D2"
Range("F3").Select
ActiveCell.Formula = "=+'M32#1'!G2"
Range("G3").Select
ActiveCell.Formula = "=+'M32#1'!H2"
Range("H3").Select
ActiveCell.Formula = "=+'M32#1'!I2"
ActiveWorkbook.Save
End If
End Sub
Sub Worksheet_Change(ByVal Target As Range)
Sheets("Efficiency").Select
If Range("B3") = "=+'M32#1'!#REF!" Then
Range("B3").Select
ActiveCell.Formula = "=+'M32#1'!A2"
Range("C3").Select
ActiveCell.Formula = "=+'M32#1'!B2"
Range("D3").Select
ActiveCell.Formula = "=+'M32#1'!M2"
Range("E3").Select
ActiveCell.Formula = "=+'M32#1'!D2"
Range("F3").Select
ActiveCell.Formula = "=+'M32#1'!G2"
Range("G3").Select
ActiveCell.Formula = "=+'M32#1'!H2"
Range("H3").Select
ActiveCell.Formula = "=+'M32#1'!I2"
ActiveWorkbook.Save
End If
End Sub