Rowland Hamilton
Active Member
- Joined
- Nov 13, 2009
- Messages
- 250
I'm working to consolidate multiple columns of data into two columns, one for the former column labels and one for the amounts of the data. In copying over the labels, even when CTRL-SHIFT-DOWN next to contiguous data on the left, I still end up pasting down to the bottom of the document. Solution was to paste up from the bottom with CTRL-SHIFT-UP, but I paste over the column heading that way. How can I add the additional arrow key down move in the VBA code (note: only a portion of code))?:
Thank you, Rowland
Code:
Columns("AC:AD").Select
Selection.Insert Shift:=xlToRight
Range("AC7").Select
ActiveCell.Formula = "Item"
Range("AD7").Select
ActiveCell.Formula = "Amount"
ActiveCell.Offset(0, 2).Select
Selection.Copy
ActiveCell.Offset(0, -4).Select
Selection.End(xlDown).Select
ActiveCell.Offset(0, 1).Select
Range(Selection, Selection.End(xlUp)).Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False