thelostscott
Board Regular
- Joined
- May 7, 2010
- Messages
- 226
Hi all,
I'm having trouble creating some code that copies and then deletes values & formulas from a row after I insert a row into a table by using:
This code keeps data in the row below the newly inserted row, but what I want to do is to have the data (Values & Formulas) in the row below copied into the newly inserted row and then deleted from the original row.
Any ideas? (I hope that made sense!)
I'm having trouble creating some code that copies and then deletes values & formulas from a row after I insert a row into a table by using:
Code:
Sub Add_Row()
Range("D4").Select
Selection.End(xlDown).Select
Selection.EntireRow.Insert , CopyOrigin:=xlFormatFromLeftOrAbove
End Sub
This code keeps data in the row below the newly inserted row, but what I want to do is to have the data (Values & Formulas) in the row below copied into the newly inserted row and then deleted from the original row.
Any ideas? (I hope that made sense!)