SpeedyKevin
New Member
- Joined
- Apr 26, 2019
- Messages
- 17
Hello all!
Trying to use this macro (listed below) to copy rows (that include a certain word) to another sheet. As it is, it will only copy over the specified range of rows if the cell has "video" but id like it to copy it if it has "video" + any other comments that may be in the cell. Is that possible?
Application.ScreenUpdating = False
Dim i As Long
Dim Lastrow As Long
Dim Lastrowr As Long
Sheets("Task List Template").Activate
Lastrow = Cells(Rows.Count, "B").End(xlUp).Row
Lastrowr = Sheets("Task List Template2").Cells(Rows.Count, "C").End(xlUp).Row
For i = 1 To Lastrow
If Cells(i, "D").Value = "video" Then
Cells(i, 1).Resize(, 8).Copy Sheets("Task List Template2").Cells(5, 2)
Lastrowr = Lastrowr + 1
End If
Next
Application.ScreenUpdating = True
Trying to use this macro (listed below) to copy rows (that include a certain word) to another sheet. As it is, it will only copy over the specified range of rows if the cell has "video" but id like it to copy it if it has "video" + any other comments that may be in the cell. Is that possible?
Application.ScreenUpdating = False
Dim i As Long
Dim Lastrow As Long
Dim Lastrowr As Long
Sheets("Task List Template").Activate
Lastrow = Cells(Rows.Count, "B").End(xlUp).Row
Lastrowr = Sheets("Task List Template2").Cells(Rows.Count, "C").End(xlUp).Row
For i = 1 To Lastrow
If Cells(i, "D").Value = "video" Then
Cells(i, 1).Resize(, 8).Copy Sheets("Task List Template2").Cells(5, 2)
Lastrowr = Lastrowr + 1
End If
Next
Application.ScreenUpdating = True