I am trying to write a macro that selects any rows with text in a particular column (doesn't matter what text) and then paste it into a Summary sheet, this needs to cycle through all the sheets in the workbook bar the summary sheet. However I am having problems getting it to work, I keep getting 'Compile Error: Method or Data Member not Found', I need the macro to run through all sheets regardless of name as the sheets are eventually archived and new ones added.
I have now changed the way the macro finds the cells with text in to the below, I don't know if this changes things:
Sub SmartCopy()
Dim s1 As Worksheet, s2 As Worksheet
Dim N As Long, i As Long, j As Long
Set s1 = Sheets("Customer 1")
Set s2 = Sheets("Action Summary")
N = s1.Cells(Rows.Count, "C").End(xlUp).Row
j = 2
For i = 6 To N
If s1.Cells(i, "C").Value = "" Then
Else
s1.Cells(i, "C").EntireRow.Copy s2.Cells(j, 1)
j = j + 1
End If
Next i
End Sub
I am new to this and probably have it totally wrong but any help would be appreciated.