I would like to be able to take data presented along a single row and have it moved to a single column. The code below is what I have constructed in order to accomplish this task. I am receiving an error "Pastespecial method of range class failed" on the line immediately below. Why is it doing this?
Code:
ActiveCell.Offset(1, -1).PasteSpecial Paste:=xlPasteValues
Code:
Dim A As Integer Dim B As Integer
'
ActiveCell.Activate
A = ActiveCell.End(xlToRight).Column
For B = 0 To A
ActiveCell.Offset(0, 1).Select
ActiveWorkbook.ActiveSheet.Range(ActiveCell, Cells(ActiveCell.Row, ActiveCell.End(xlToRight).Column)).Cut
ActiveCell.Offset(1, -1).PasteSpecial Paste:=xlPasteValues
ActiveCell.Activate
Next B
End Sub