• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Copy range paste next to dynamic list

xzcvb33

New Member
hi, I have a list of 100 depts. list starts in A2 this is on sheet 1. Sheet 2 has a range of data A2-A50. I'd like to copy that range and insert it in column d of sheet 1 below each dept. all the way down the list. Thanks for any help u can provide
 
Hi:

Find the attached.
Code:
Sub test()

Application.ScreenUpdating = False
j& = Me.Cells(Rows.Count, "A").End(xlUp).Row + 1

For i& = j To 3 Step -1
    Rows(i).Resize(49).Insert
    Sheet2.Range("A2:B50").Copy
    Me.Range("D" & i).PasteSpecial
Next

Application.CutCopyMode = False
Application.ScreenUpdating = True

End Sub

Thanks
 

Attachments

Is there a way to mark it solved...having trouble finding it but I'm on a phone...ill check from my home pc tonight
 
Back
Top