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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

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