For Each in Selection, Copy and Paste to Range

MrHR

New Member
Joined
Apr 9, 2021
Messages
1
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi all,

Trying to write one that will let me copy data from each cell in a selection, then paste that value in a set number of blank rows, starting with the next blank in a column.
What I have so far, but rather than pasting the same value 10 times, then the next 10 times, etc., it pastes each value one by one, 10 times over.

Dim c As Excel.Range
For Each c In Selection

Selection.Copy
ActiveSheet.Range("D1").End(xlDown).Offset(1).Resize(10).Select
ActiveSheet.Paste

Next c

Thank you!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
17,590
Office Version
  1. 2013
Platform
  1. Windows
Try this:
VBA Code:
Sub Copy_Range()
'Modified  4/9/2021  10:48:15 PM  EDT
Application.ScreenUpdating = False
Dim r As Range

    For Each r In Selection
        r.Copy ActiveSheet.Range("D1").End(xlDown).Offset(1).Resize(10)
    Next

Application.ScreenUpdating = True
End Sub
 

Watch MrExcel Video

Forum statistics

Threads
1,130,117
Messages
5,640,206
Members
417,131
Latest member
Seanr19871

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
Top