Copying a range two columns wide and pasting in next free column

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,210
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

Heres my problem,
I need a macro to do the following.

Copy Range AX53:AY68

Then paste to the first empty column row 53 after BK
So First Column it could past into is BL53 if that already contains data move on to BM and paste in first empty cell

Please help if you can thanks

Tony
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
How about
Code:
Sub tonywatson()
   Dim NxtCol As Long
   NxtCol Cells(53, Columns.Count).End(xlToLeft).Offset(, 1).Column
   If NxtCol < 63 Then NxtCol = 63
   Range("AX53:AY68").Copy Cells(53, NxtCol)
End Sub
 
Last edited:
Upvote 0
Thanks Fluff,
I'll give it a go loogs good to me so thank you for you help.
Tony
 
Upvote 0
Hi Fluff,
I like the idea one problem
After Column CD I have other data so is there a way to stop it for looking past column CC?
this will always be enought room to find an empty space.

Thanks

Tony
 
Upvote 0
How about
Code:
Sub tonywatson()
   Dim NxtCol As Long
   NxtCol Cells(53, 82).End(xlToLeft).Offset(, 1).Column
   If NxtCol < 63 Then NxtCol = 63
   Range("AX53:AY68").Copy Cells(53, NxtCol)
End Sub
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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