Hello,
I am quite a noob at programming in vba, and am looking for some help. I am needing to write a macro that would start at a defined cell in Sheet1 (A6) and then copy/paste that cell into a specified cell in another sheet inside the same workbook (Sheet2!A8). I then need a loop to repeat the copy/paste command as long as there is data in Sheet1, column A. Can anyone help me?
Thanks so much!
Hi feephan,
Welcome to the forum
Loops can be slow so finding all the cells with values first copy then pasteSub ftest() With Sheets("Sheet1") .Range("A6", Range("A6").End(xlDown)).Copy Destination:=Worksheets("Sheet2").Range("A8") End With End Sub
regards pike
If the solution helped please donate here to the RSPCA
Sites worth visiting;
J&R Solutions - royUK
AJP Excel Information - Andy Pope
Spreadsheet Toolbox
VBA for smarties - snb
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks