I need to copy the same row from multiple sheets into one row.
Example: I have an excel file with 5 sheets. I have to copy the 10th row (or the 15th row, or the 21th row
Here is a sample for 6 sheets and rows # 7:
Sub copyrow()
Dim Nrow As Long, Nsheet As Long
Dim i As Long
Nrow = 7
Nsheet = 6
For i = 1 To Nsheet - 1
Sheets(i).Cells(Nrow, 1).EntireRow.Copy Sheets(Nsheet).Cells(i, 1)
Next i
End Sub
The row # 7 from the first 5 sheets will be copied into the 6th sheet.