I am working on a excel project and I am struggling at the moment with the following.
I am trying to copy data from A2:C2 from sheet1 to sheet2 until I reach an empty row in sheet1. Also I need to be able to copy each line of data into sheet2 five times. So copy A2:C2 from sgheet1 to sheet2 and paste it in sheet2 five times. Continue until I reach an empty row in sheet1. Many thanks for any help or assistance.
Here is the code so far:When I run step by step it copies the first data into sheet 2 five times perfect but then instead of moving onto the next row in sheet 1 it continues to copy the first data into sheet 2
Sub Macro1()
'
' Macro1 Macro
'copy normal data
''Loop until a blank cell is found in Column b
Sheets("Sheet1").Select
Range("B2:D2").Select
Selection.Copy
Sheets("Sheet2").Select
Range("B2:B6").Select
ActiveSheet.Paste
Columns("B:B").EntireColumn.AutoFit
Sheets("Sheet1").Select
Range("B2:D2").Select
Selection.Copy
Sheets("Sheet2").Select
Sheets("Sheet2").Range("b" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial
Do While BlankFound = False
x = x + 1
If Cells(x, "b").Value = "" Then
BlankFound = True
End If
Loop