Hello all.
I think this is a simple question.
I want to copy an especific column and paste its values, tranposed, in any choosen cell.
The code below, recorded with excel's macro recorder, doesn't do what I want, because I want to use the cell that the mouse is currently on, prior to the execution of the macro - it is, paste transposed in that cell.
I found some insights using inputbox, but I don't want a window poping for such a simple task. Can anyone help?
Thank you in advance.
I think this is a simple question.
I want to copy an especific column and paste its values, tranposed, in any choosen cell.
The code below, recorded with excel's macro recorder, doesn't do what I want, because I want to use the cell that the mouse is currently on, prior to the execution of the macro - it is, paste transposed in that cell.
I found some insights using inputbox, but I don't want a window poping for such a simple task. Can anyone help?
Thank you in advance.
Code:
Sub PasteT()
'
' PasteT Macro
'
'
ActiveCell.Range("A1:A6").Select
Selection.Copy
ActiveCell.Offset(0, 8).Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=True
End Sub