Pasting column details into a row

johnpants

New Member
Joined
Oct 31, 2005
Messages
44
Hello again, another small code change I am stuck with. :)

I have the code below that pastes a single cell to the next empty row, and then to the offset I require and works fine.

Rich (BB code):
Sub Manual()
Application.ScreenUpdating = False
    Sheets("Calendar").Range("T4:T51").Copy
    Sheets("Data").Select
    LastRow = Range("A65536").End(xlUp).Offset(1, 11).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
    Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub

Now, the problem is that I want to amend this so that if I copy a range in a column, it will rotate it and paste it into the row. Get me? I have made the part I have changed bold (the column details I want to copy). The code above does work, but it pastes it vertically instead of horizontically.

Can anyone help me with this?

Tanks.

John.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Thank you, shows my level of knowledge hey! hehe

At least now I know what transpose means too, so thanks again.

John.
 
Upvote 0

Forum statistics

Threads
1,214,636
Messages
6,120,669
Members
448,977
Latest member
moonlight6

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top