I need the below private sub code to work, when I place the data in the work sheet.
kindly help.
[VBA]
Private Sub ActAdj(ByVal Target As Range)
Dim lastrow
With ActiveSheet
lastrow = .Range("B4").End(xlDown).Row
With .Range("E4").Resize(lastrow - 6) 'E4 here would from where the formula needs to be copied
ActiveSheet.Range("E2").Copy .Cells
.Value = .Value
End With
End With
End Sub
[/VBA]
This Code should automatically pick the formula, as soon as I place value in cell D4 onwards.
Kindly help