I have a problem very similar to the one posted on this thread https://www.mrexcel.com/forum/excel...-cell-value-worksheet-name-copy-row-data.html and the code supplied by mumps look very promising
The only problem is it does not appear to copy the row across or go on to the next c
any ideas?
Thanks
Code:
Sub CopyRows()
Dim bottomD As Integer
bottomD = Range("A" & Rows.Count).End(xlUp).Row
Dim c As Range
Dim ws As Worksheet
For Each c In Sheets("subjectnames").Range("A1:A" & bottomD)
For Each ws In Sheets
ws.Activate
If ws.Name = c Then
c.EntireRow.Copy Cells(Rows.Count, "A").End(xlUp)
End If
Next ws
Next c
End Sub
The only problem is it does not appear to copy the row across or go on to the next c
any ideas?
Thanks