I have a spreadsheet using some VBA (I'm still very new to VBA) that uses Target.Address to reference a cell, however if I then insert a row into the spreadsheet above the target reference (in this case E1), the cell reference is no longer valid, how can I change it so that irrespective of how many rows are inserted, the cell reference will update accordingly?
I've tried If Target.Address(False,False) = "E1" but this makes no difference.
Many thanks
Code:
If Target.Address(0, 0) = "E1" Then
Many thanks