I'm trying to copy the entire rows from a spreadsheet called "RAW" to another blank Spreadsheet named "FMX DUIC" The rows that I'm trying to copy are based on the value in the Cell in column "A" (Currently I have three criteria but I may add more in the future). The code appears to have an error(s) in the line that presents the instruction to "cell.entirerow copy"(as I can't get past that point). Would anyone have suggestions on how to fix the code??
ActiveSheet.Name = "RAW"
ActiveWindow.Zoom = 80
Sheets("RAW").Activate
Sheets(1).Select
Worksheets.Add
ActiveSheet.Name = "FMX DUIC"
ActiveWindow.Zoom = 80
Sheets("RAW").Select
Range("A1").Select
Dim bottomC As Long
bottomC = Range("A" & Rows.Count).End(xlUp).Row
Dim cell As Range
For Each cell In Range("A2:A" & bottomC)
If cell.Value = "W0H989" Or cell.Value = "W1D241" Or cell.Value = "W1D261" Then
cell.EntireRow.Copy Sheets("FMX DUIC").Cells(r, 1)
r = r + 1
End If
Next cell
Thanks,
JB
ActiveSheet.Name = "RAW"
ActiveWindow.Zoom = 80
Sheets("RAW").Activate
Sheets(1).Select
Worksheets.Add
ActiveSheet.Name = "FMX DUIC"
ActiveWindow.Zoom = 80
Sheets("RAW").Select
Range("A1").Select
Dim bottomC As Long
bottomC = Range("A" & Rows.Count).End(xlUp).Row
Dim cell As Range
For Each cell In Range("A2:A" & bottomC)
If cell.Value = "W0H989" Or cell.Value = "W1D241" Or cell.Value = "W1D261" Then
cell.EntireRow.Copy Sheets("FMX DUIC").Cells(r, 1)
r = r + 1
End If
Next cell
Thanks,
JB