• 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.

Help in Copy and Paste cells with loop logic

Hi All,
i have 2 sheet "Sheet1" and Sheet"User" which has 3 user need to copy the user and paste in sheet1 at "B" Column repletely till last row, Pls help on same
i have tried some code but not working.

>>> use code - tags instead icode - tags <<<
Code:
Option Explicit

Sub allocation()
Dim lr As Long
Dim lr2 As Long

Sheet1.Activate

Sheet2.Activate
    Sheet2.Range("A2:A4").Select
    Sheet2.Range(Selection, Selection.End(xlDown)).Select
    Selection.Copy

    lr = Sheet1.Cells(Rows.Count, "B").End(xlUp).Row + 1
    Sheet1.Activate
    Sheet3.Range("B" & lr).Activate
    Sheet3.Paste

End Sub
 
Last edited by a moderator:
Back
Top