Copy and paste 13 columns across

bgonen

Active Member
Joined
Oct 24, 2009
Messages
264
I got values in range (for example B10:B30) and trying to copy each value across 13 columns starting at cell G4, After the copy/paste on the 13 columns I'm trying to skip one column and then again copy the next value (from the range B10:BB30) to the next 13 columns across

Thanks
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
I tried the following command but I still get an error:Invalid qualifier (in RED)


Sub CopyPasteAcrossColumns()
Dim LR As Long, i As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = A To LR
Range("A" & i).Copy Destination:=Range("P3" & Columns.Count).End(xlToRight).Column.Resize(13)
Next i
End Sub

In this example I'm trying to copy value in A1 to 13 columns starts at cell P3 (horizontally 13 columns)then
I try to have one blank column and then copy the value in A2 to the column starting after the blank column,,,etc etc
 
Upvote 0
Maybe - just a guess because the question is far from clear to me:

Code:
Sub CopyPasteAcrossColumns()
Dim LR As Long, i As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = A To LR
Range("A" & i).Copy Destination:=Range("P" & Columns.Count).End(xlToLeft).Offset(,1).Resize(13)
Next i
End Sub
 
Upvote 0
I'm still getting an error.
I agree, my explanation is confusing
I will create a new thread
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,151
Members
452,891
Latest member
JUSTOUTOFMYREACH

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