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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
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
 
Upvote 0

Forum statistics

Threads
1,215,065
Messages
6,122,945
Members
449,095
Latest member
nmaske

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