Hello I have a simple macro to copy a row and insert below. Works like a charm. However...
This alters the formulas relative references. This is what I want EXCEPT for the formula in the A column cell. When I insert this new row I want the formula in the A cell from the original row to copy EXACTLY, not to shift, to the A cell in the new row. If the formula is =B3 in the original I want it to be =B3 in the new row, NOT =B4 etc. The formula in the A column is not consistent across the sheet so it has to pull it from the cell, the macro can't provide it. For reasons related to other macros and functions I can't just use $ absolute references. Any advice. I tried to record a few macros to get an idea but it hasn't worked. Thanks in advance!
Code:
Sub AddRow()
'
'
'
ActiveCell.EntireRow.Copy
ActiveCell.Offset(1, 0).Rows("1:1").EntireRow.Select
Selection.Insert Shift:=xlDown
End Sub
This alters the formulas relative references. This is what I want EXCEPT for the formula in the A column cell. When I insert this new row I want the formula in the A cell from the original row to copy EXACTLY, not to shift, to the A cell in the new row. If the formula is =B3 in the original I want it to be =B3 in the new row, NOT =B4 etc. The formula in the A column is not consistent across the sheet so it has to pull it from the cell, the macro can't provide it. For reasons related to other macros and functions I can't just use $ absolute references. Any advice. I tried to record a few macros to get an idea but it hasn't worked. Thanks in advance!