I am copying data from one worksheet into another, transposing and auto-filling using a macro but i want to create a loop and have it always select the next cell ("A8" & "B8")in the previous worksheet (MF2) to be copied instead of having to manually change the cell. This is the macro i'm using
Sub Test1()
Sheets("MF2").Select
Range("A8").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet3").Select
Columns("A").Find("", Cells(Rows.Count, "A")).Select
ActiveSheet.Paste
Sheets("MF2").Select
Range("B8").Select
Range(Selection, Selection.End(xlToRight)).Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet3").Select
Columns("B").Find("", Cells(Rows.Count, "B")).Select
ActiveCell.Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Dim endRow As Long
endRow = Cells(Rows.Count, "B").End(xlUp).Row
Range("A1").End(xlDown).Select
ActiveCell.AutoFill Destination:=Range(ActiveCell.Address & ":A" & endRow)
Range("C1").End(xlDown).Select
ActiveCell.AutoFill Destination:=Range(ActiveCell.Address & ":C" & endRow)
End Sub